拉registry镜像

假设在192.168.100.17服务器上搭建私服

docker pull registry
docker run -d -v /data/docker/registry:/var/lib/registry -p 5000:5000 --restart=always registry

registry的github地址:https://github.com/docker/distribution

配置docker

push之前需要在/etc/docker/daemon.json添加一行

{"insecure-registries": ["192.168.100.17:5000"]}

重启docker

restart docker

push

打标签

docker tag busybox 192.168.100.17:5000/busybox

开始push

docker push 192.168.100.17:5000/busybox

pull的话同理

docker pull 192.168.100.17:5000/busybox

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2021-10-15
  • 2021-08-01
  • 2021-12-16
  • 2021-08-14
猜你喜欢
  • 2021-09-06
  • 2021-10-14
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案