hi. so i am trying to set up a docker swarm and they seem to have connected but when i deploy a service with the following command, i was expecting the services to be distributed between 2 nodes.
sudo docker service create --name my_web \ --replicas 6 \ --publish published=8080,target=80 \ nginx
but when i run the following command, i get the following response:
sudo docker service ps my_web
it shows that all the service replicas are on the master node. and when i run the following command, i get the response:
sudo docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS txd59uxjwe9eulo7qx6yrginn * node00 Ready Active Leader mbb4rbyrghzxbdf9g4f5pxgmp node01 Down Active
it shows that node01’s
AVAILABILITY is Active, but the
STATUS is Down.
does anyone know what could be causing this issue. i am new to docker swarm so any help is appreciated.