Update service environment variables.
Section: Swarm Services
Update service env
bash
bash
docker service update --env-add LOG_LEVEL=debug webExplanation
Useful for changing config without redefining the service from scratch.
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