ubuntu - Error with docker login: no such host -
after starting private docker registry registry
docker image, doing login registry
docker login http://docker.mydomain.com:5000
causes following error after typing in name, password , email:
fata[0007] error response daemon: v1 ping attempt failed error: https://docker.mydomain.com:5000/v1/_ping: dial tcp: lookup docker.mydomain.com: no such host. if private registry supports http or https unknown ca certificate, please add `--insecure-registry docker.mydomain.com:5000` daemon's arguments. in case of https, if have access registry's ca certificate, no need flag; place ca certificate @ /etc/docker/certs.d/docker.mydomain.com:5000/ca.crt
trying insecure login not work too:
docker login --insecure-registry http://docker.mydomain.com:5000
any suggestions? thanks!
nmap localhost
nmap scan report localhost (127.0.0.1) host (0.000010s latency). not shown: 997 closed ports port state service 22/tcp open ssh 80/tcp open http 5000/tcp open upnp
visiting http://docker.mydomain.com:5000
on browser:
true
visiting http://docker.mydomain.com:5000/v1/_ping
on browser:
{}
you misunderstanding --insecure-registry
flag - daemon not client. stated in error message:
please add
--insecure-registry docker.mydomain.com:5000
daemon's arguments.
you need add daemon , restart if want use insecure private registry. otherwise, put behind web server uses https , proxy it.
Comments
Post a Comment