Best way to restart a docker service in swarm

Viewed 27

If I want to restart a docker service cleanly, I am doing this:

docker service update service_name --force

But this recreates the service leaving an orphaned one behind, which then needs to be removed with a prune. Any other way? Scaling down and up is one way I know, but doesn't seem like the cleanest way.

0 Answers
Related