I have a doubt in using docker swarm mode commands to update existing services after having deployed a set of services using docker stack deploy
.
As far I understood every service is pinned to the SHA256 digest of the image at the time of creation, so if you rebuild and push an image (with same tag) and you try to run a docker service update
, service image is not updated (even if SHA256 is different). On the contrary, if you run a docker stack deploy
again, all the services are updated with the new images.
I managed to update the service image also by using docker service update --image repository/image:tag <service>
. Is this the normal behavior of these commands or is there something I didn't understood?
I'm using Docker 17.03.1-ce