i'm trying setup private docker registry mirror using command:
docker run -d -p 5555:5000 -e storage_path=/mirror -e standalone=false -e mirror_source=https://registry-1.docker.io -e mirror_source_index=https://index.docker.io -v /users/v11/documents/docker-mirror:/mirror --restart=always --name mirror registry and start docker these variable:
sudo http_proxy=http://10.16.10.129:9526/ docker -g /opt/apps/docker/lib --insecure-registry=10.11.150.75:5555 --registry-mirror=http://10.11.150.75:5555 -d & when pull image, show me error information in docker log:
info[0019] post /v1.19/images/create?fromimage=hello-world%3alatest erro[0023] unable create endpoint http://10.11.150.75:5555/: invalid registry endpoint https://10.11.150.75:5555/v0/: unable ping registry endpoint https://10.11.150.75:5555/v0/ v2 ping attempt failed error: https://10.11.150.75:5555/v2/: eof v1 ping attempt failed error: https://10.11.150.75:5555/v1/_ping: eof. if private registry supports http or https unknown ca certificate, please add
--insecure-registry 10.11.150.75:5555daemon's arguments. in case of https, if have access registry's ca certificate, no need flag; place ca certificate @ /etc/docker/certs.d/10.11.150.75:5555/ca.crt
i try set "--insecure" in different way this:
--insecure-registry http://example.com:5555 --insecure-registry example.com:5555 --insecure-registry=example.com:5555 --insecure-registry=http://example.com:5555 they failed. drives me crazy said set "--insecure" ok , succeeded on mac osx. need create on centos , i'm sure didn't work @ all.
by way, docker version information , registry latest. use centos:
docker version client version: 1.7.0 client api version: 1.19 go version (client): go1.4.2 git commit (client): 0baf609 os/arch (client): linux/amd64 server version: 1.7.0 server api version: 1.19 go version (server): go1.4.2 git commit (server): 0baf609 os/arch (server): linux/amd64
Comments
Post a Comment