Reported symptoms
docker pull myorg/myapp:1.0.0fails.- Error message indicates authentication, DNS, or TLS issue.
Evidence provided
$ docker pull registry.example.com/myorg/myapp:1.0.0
# Error: unauthorized: authentication required
or
# Error: dial tcp: lookup registry.example.com on 8.8.8.8:53: no such host
Resolution path
- Try docker login.
docker login registry.example.com- Provide valid credentials. If anonymous access is allowed, skip this step.
- Verify DNS.
nslookup registry.example.comdig registry.example.com- If DNS fails, check /etc/resolv.conf and DNS server reachability.
- Verify TLS.
curl -vI https://registry.example.com/v2/- Check the certificate is valid and trusted by the host CA bundle.
- If using a private registry with self-signed certs.
- Configure the daemon to trust the cert:
mkdir -p /etc/docker/certs.d/registry.example.comcp ca.crt /etc/docker/certs.d/registry.example.com/ca.crt- Restart the daemon:
systemctl restart docker. - For rate-limited Docker Hub.
- Authenticate:
docker login(with Docker Hub account). - Or use a pull-through cache mirror.
Verification
- docker pull succeeds.
- Image is in the local cache.
docker images | grep myorg/myapp. - Login works without re-auth.
docker login registry.example.com(already authenticated).