I am trying to run an image from a private registry using dockers.
I have an image that I have tagged and placed in a private registry. If I run this locally:
docker run -p 8000:8000 -d registry.mydomain.com:8080/myimage
It works fine.
If I activate my swarm and try to run from there:
$(docker-machine env --swarm swarm-master) docker login registry.mydomain.com:8080 docker run -p 8000:8000 -d registry.mydomain.com:8080/myimage
I get "Authentication Required".
I'm actually trying to do this using the dockers remote API, but first I think I should run it on the command line.
Is it possible?
Thanks!
source share