Docker swarm not service not deploying to other nodes

+3 votes

Hi,

I have a docker swarm set up. I have attached a picture of some of the information. Basically, if I try and get a service to load, it only loads on the master (which is also where it was created). I need to be able to specify other nodes that it will deploy to but they come up with “no such image”. I am only new to this, so I am figuring it is something fairly basic that I have missed so any help would be appreciated.

To create the service I use

sudo docker service create —name s2f7 —publish 4000:4000 —hostname pi-zero s2fv7

Jan 31, 2020 in Docker by Karenh
• 200 points
2,379 views

Can you please go to your worker node and check for all the available images? Use the command 

docker images

This is the images. I would imagine that if there was an issue, it wouldn't work at all.

1 answer to this question.

+1 vote

Hi @Karenh.

Try removing all the old images using the following command:

dokcer-compose rm 

And try rebuilding it again.

answered Jan 31, 2020 by Aisha
I haven't used compose though.

Related Questions In Docker

0 votes
1 answer

swarm manager does not connect to nodes docker daemons on AWS

You first need to ssh into the ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 7,060 points
1,840 views
+2 votes
1 answer

Nodes not able to join docker swarm cluster

You need to provide more information like ...READ MORE

answered Sep 26, 2018 in Docker by Kalgi
• 52,350 points
1,877 views
0 votes
1 answer
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,925 views
+3 votes
4 answers

Not able to connect worker nodes to the swarm. Connection refused error

This definitely has to be a firewall issue. ...READ MORE

answered Apr 26, 2019 in Docker by Vaidya
18,774 views
+2 votes
1 answer

How to link one running container with other running container in docker.

Hi @Yuvraj! Yes, this is possible. You can ...READ MORE

answered Dec 16, 2019 in Docker by Kalgi
• 52,350 points
2,195 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