Docker swarm, not service not deploying to other nodes

+2 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 in Docker by Karenh
• 180 points
203 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 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
• 6,960 points
275 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
• 51,850 points
457 views
0 votes
1 answer
+2 votes
1 answer

Cannot connect to docker swarm service task

The id that command docker service ps <service> gives ...READ MORE

answered Sep 26, 2018 in Docker by Kalgi
• 51,850 points
312 views
0 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
1,225 views
+3 votes
3 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
7,493 views
+1 vote
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
• 51,850 points
148 views