dockerhub - How does mirror registry work in docker? -
i want deploy registry mirror in docker, , can avoid trip out internet refetch it. so, use command:
docker pull ubuntu docker rmi ubuntu
i guess there ubuntu image in local.so, closed internet, use command:
docker pull ubuntu
but,it didn't work. don't know happened. want know how mirror work. may need connect docker hub dependence? or may fail deploy mirror?
by way, how know whether succeed in deploying mirror?
you need make sure docker daemon started docker --registry-mirror=http://<my-docker-mirror-host> -d
, or none of docker pull
call go through mirror.
and of course, make sure there 1 running mirror registry container (docker ps -a
)
the op v11 confirms in comments:
i think fail start mirror. thanks! maybe don't started docker --registry-mirror=http:// -d
the op did modify /var/lib/boot2docker/profile
as advised here, might not have restart boot2docker before mirror tests.
Comments
Post a Comment