环境:MAC OS X 10.12 + JDK 1.8 + Maven 3.3.9 + Nexus 3.3
1. 为每个 docker 仓库创建各自的 Blob Store
(1) docker-hub(proxy)
(2) docker-redhat(proxy)
(3) docker-private(hosted)
(4) docker-group(group)
2. 创建各个 docker 仓库
3. 添加 Insecure Registries
192.168.56.1:8082 是 docker-group 的 http 端口
192.168.56.1:8123 是 docker-private 的 http 端口
4. 删除 docker 代理配置
删除 docker 代理配置,否则 docker pull 会有问题。
5. 测试 docker-hub 和 docker-redhat
docker login -u admin -p admin123 192.168.56.1:8082
参考文献:
1. 为每个 docker 仓库创建各自的 Blob Store
(1) docker-hub(proxy)
(2) docker-redhat(proxy)
(3) docker-private(hosted)
(4) docker-group(group)
3. 添加 Insecure Registries
192.168.56.1:8082 是 docker-group 的 http 端口
192.168.56.1:8123 是 docker-private 的 http 端口
4. 删除 docker 代理配置
删除 docker 代理配置,否则 docker pull 会有问题。
5. 测试 docker-hub 和 docker-redhat
docker login -u admin -p admin123 192.168.56.1:8082
docker pull 192.168.56.1:8082/hello-world
docker pull 192.168.56.1:8082/rhel7.3
6. 测试 docker-private
docker login -u admin -p admin123 192.168.56.1:8123
docker tag hello-world 192.168.56.1:8123/hello-world
docker push 192.168.56.1:8123/hello-world
多次 Retry 之后,报告错误,输出如下:
The push refers to a repository [192.168.56.1:8123/hello-world]
98c944e98de8: Pushing [==================================================>] 3.584 kB
received unexpected HTTP status: 500 Server Error
TODO
docker login -u admin -p admin123 192.168.56.1:8123
docker tag hello-world 192.168.56.1:8123/hello-world
docker push 192.168.56.1:8123/hello-world
多次 Retry 之后,报告错误,输出如下:
The push refers to a repository [192.168.56.1:8123/hello-world]
98c944e98de8: Pushing [==================================================>] 3.584 kB
received unexpected HTTP status: 500 Server Error
TODO
1. http://www.cnblogs.com/wzy5223/p/5410990.html 试用 Nexus OSS 3.0 的docker仓库 (一)
2. http://www.cnblogs.com/wzy5223/p/5414965.html 试用 Nexus OSS 3.0 的docker仓库 (二)
3. http://www.sonatype.org/nexus/2016/06/29/using-nexus-3-as-a-private-docker-registry/
4. http://www.sonatype.org/nexus/2017/02/08/using-nexus-3-as-your-repository-part-1-maven-artifacts/
5. http://www.sonatype.org/nexus/2017/02/14/using-nexus-3-as-your-repository-part-2-npm-packages/
6. http://www.sonatype.org/nexus/2017/02/16/using-nexus-3-as-your-repository-part-3-docker-images/
7. http://www.cnblogs.com/wzy5223/p/5389546.html
8. http://www.sonatype.org/nexus/2015/09/22/docker-and-nexus-3-ready-set-action/
3. http://www.sonatype.org/nexus/2016/06/29/using-nexus-3-as-a-private-docker-registry/
4. http://www.sonatype.org/nexus/2017/02/08/using-nexus-3-as-your-repository-part-1-maven-artifacts/
5. http://www.sonatype.org/nexus/2017/02/14/using-nexus-3-as-your-repository-part-2-npm-packages/
6. http://www.sonatype.org/nexus/2017/02/16/using-nexus-3-as-your-repository-part-3-docker-images/
7. http://www.cnblogs.com/wzy5223/p/5389546.html
8. http://www.sonatype.org/nexus/2015/09/22/docker-and-nexus-3-ready-set-action/
没有评论:
发表评论