How to update docker stack without restarting all services How to update docker stack without restarting all services docker docker

How to update docker stack without restarting all services


docker service update --image does the trick.

Check the docker service update docs.


Redeploying the stack with changed configuration(docker-compose.yml file) solves the problem see https://docs.docker.com/engine/reference/commandline/stack_deploy/#extended-description.There they stated "Create and update a stack from a compose or a dab file on the swarm." Also i dont see any command like 'docker stack update'. So this can solve the problem.