1、创建Docker registry container的命令:
docker run -d -p 5000:5000 registry

2、容器启动之后,访问http://ip:5000,可以看到:
"\"docker-registry server\""

3、给镜像打标签将它指向你的registry
docker tag 1e6ed717014b localhost:5000/donhui/jenkins
其中1e6ed717014b 是镜像id

4、Push镜像到registry
docker push localhost:5000/donhui/jenkins

5、从registry Pull镜像
docker pull localhost:5000/donhui/jenkins

使用csphere在resistry中查看镜像:
Docker registry搭建

注意:registry:latest代表deprecated registry,同时Docker Registry HTTP API 也有V1和V2版本。
The tags >= 2 refer to the new registry.
Older tags refer to the deprecated registry.
Docker registry搭建

参考:

其他:
下面这篇关于docker registry的文章很不错

转载于:https://my.oschina.net/donhui/blog/481016

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2021-04-17
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2021-06-17
  • 2021-08-08
  • 2021-11-19
  • 2021-07-27
相关资源
相似解决方案