Docker registry with Nexus : 503 Service Unavailable

  docker, docker-registry, nexus

I want to use a Nexus as private registry to push docker image but I’m not able to login

When I try this :

docker login xxx.xxx.com:8500

I have this message :

Error response from daemon: login attempt to http://xxx.xxx.com:8500/v2/ failed with status: 503 Service Unavailable

I set up my /etc/docker/daemon.json like this :

{
  "insecure-registries": [
    "xxx.xxx.com:8500",
    "xxx.xxx.com:8501"
  ]
}

And when I try this :

curl http://xxx.xxx.com:8500/v2/_catalog

I have a response :

{"repositories":[]}

Thanks for your help

Source: Docker Questions

LEAVE A COMMENT