Skip to main content


Restart a Service

The best way to restart a service is to use the update command:

docker service update <service ID/name>

Or you can restart the container associated with the service in which you are interested. The container name should match the service name. The docker service update command will pull a new version of an image, if one is available and matches the image tag, whereas the docker restart command will not.

List all containers running on a particular node:

docker ps

Then restart the container:

docker restart <container ID>