Docker Community Forums

Share and learn in the Docker community.

Issue with docker service ps command after docker CE version upgrade on all nodes in swarm

swarm
upgrades
docker

(Crazyhorse019) #1

Good Afternoon,

I was hoping someone would be able to shed some light on a potential issue I have. I am new to docker and I am upgrading the docker version of all my nodes in my test swarm. Before the upgrade I was able to use the command - docker service ps and it would list all the containers across all swarm nodes and whether they were running or not, for how long… etc. I have now upgraded every node in the swarm from docker ce - 17.5.0 to docker-ce=17.12.1~ce-0~ubuntu. When I run the same command i get:

docker service ps 1-_
no such service: 1-_

Looking this up is there a requirement to re-create the service ‘1-_’ ? and do I have to assign the service as a label against each container to get all the containers listed when I run that docker service ps command?

Thanks in advance for any help on this.