Docker Community Forums

Share and learn in the Docker community.

How to access private repos of docker hub with docker swarm?

How to access private repos of docker hub with docker swarm?

No documentation related to this on any page.
I tried logging into all nodes also using docker login.
No use

Any suggestions???

Please share

Hmm, with a private image registry the steps are:
1… docker login
2. docker stack deploy --with-registry-auth --compose-file /path/to/compose/file.yml magicstack

Thank you, but I am not using docker compose, directly using the docker service command.How to use in this case?

IIRC you need to add --with-registry-auth to the servcie creation.