Roll out a new image for a service.
Section: Swarm Services
Update service image
bash
bash
docker service update --image nginx:1.27 webExplanation
Swarm performs a rolling update based on service update settings.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Swarm Services