Hello…
I am creating a docker swarm for our company, and found problems, with local docker registry…
On one node, i pulled the registry container, and it’s accessible from network through the port 5000.
But, when i try to do:
docker login 10.0.0.25:5000
i get error:
Error response from daemon: login attempt to http://10.0.0.25:5000/v2/ failed with status: 403 Forbidden
But when i do locally:
docker login localhost:5000
it is successful. And i’m even able to push images to localhost:5000
I found on internet, that it is something that needs to be done with the /etc/default/docker
, and /etc/docker/daemon.json
where i added this:
{
"insecure-registries":["10.0.0.25:5000", "127.0.0.0/8"]
}
Could you please, tell me what i have to do to make it work?
Thanks in advance,