DOCKER-COMPOSE-RESTART(1)
docker-compose-restart(1) π
okay bestie, welcome to the docker-compose-restart manual page β yes it's a whole section 1 man page, yes I'm gonna make it cute, and yes every single flag is still here because I would never do you dirty like that π«Ά
β¨ NAME β¨
docker-compose-restart β Restart service containers π
π SYNOPSIS π
docker compose restart [OPTIONS] [SERVICE...]
π¦ DESCRIPTION π¦
So like. This command restarts all stopped and running services, or, if you're feeling picky, just the services you name. Main character energy, but make it targeted. β¨
π BIG IMPORTANT ONE, no cap: if you make changes to your compose.yml config, those changes are NOT reflected after running this command. Not a single one. For example, changes to environment variables (which get added after a container is built, but before the container's command is executed) are not updated after restarting. So don't come crying to me, bestie. π
If you're actually looking to configure a service's restart policy, that is a whole different thing β go refer to:
restartβ¨https://github.com/compose-spec/compose-spec/blob/master/spec.md#restartβ©restart_policyβ¨https://github.com/compose-spec/compose-spec/blob/master/deploy.md#restart_policyβ©
like, go read those, they're the moment. π
β¨ OPTIONS β¨
-h,--help[=false]β help for restart. Your girl is here to help, always. π--no-deps[=false]β Don't restart dependent services. Just the one, okay? Boundaries. π-t,--timeout=0β Specify a shutdown timeout in seconds. Default is0, so plan accordingly. β±οΈ
π OPTIONS INHERITED FROM PARENT COMMANDS π
--dry-run[=false]β Execute command in dry run mode. Nothing actually happens, it's giving rehearsal. π
π SEE ALSO π
Mar 2025 β that's the date, bestie, and the source/version tag is DOCKER-COMPOSE-RESTART(1), so you know exactly which page you're on. stay slay, restart responsibly, and don't forget your compose.yml changes won't show up. mwah πβ¨π¦π
π¦ where this page comes from
- debian trixie: docker-compose 2.26.1-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms