jenkins + docker automatically create a mirror

1,

docker pull registry

2,

docker run -di --name=registry -p 5000:5000 registry

3,

47.33.33.31:5000/v2/_catalog

4, modified host configuration docker

vi /lib/systemd/system/docker.service
/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 --insecure-registry 12.16.9.116:5000

5, refresh the configuration and reboot docker

 

 

6, the image creation pushed to the private image library

Published 87 original articles · won praise 14 · views 80000 +

Guess you like

Origin blog.csdn.net/epitomizelu/article/details/104336179