docker service update --image nginx:1.26 web

Category: Docker

docker service update --image nginx:1.26 web

Update a service to a new image

Rolls the web service over to nginx:1.26, replacing tasks according to the update policy. Rolling updates keep availability by default. Revert with docker service update --rollback web.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.