trying to create a service to multiple nodes and getting no such image

+2 votes
How come this has come up as an answer? I don't use docker compose so there is nothing to remove. I still need help.
Feb 2, 2020 in Docker by Karenh
• 200 points
2,484 views

This might be because the manager/master node does not share the local images with other nodes automatically. In order to achieve this, you must use a registry accessible from all the nodes of your cluster. But for this you do not have to use an external common remote repo, you could probably use a private registry image to create a service on the swarm accessible to all the nodes like this :

docker service create --name registry --publish 4000:4000 registry:2

This will ensure that all the nodes will be able to connect to the registry on “localhost:5000” and pull the image they need to run the containers of your service.

Have you tried using the '--with-registry-auth' flag when you create your service?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create a container and run images in docker?

Look for what all images you have ...READ MORE

answered Feb 23, 2019 in Docker by Kalgi
• 52,350 points
2,219 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP