DOCKER-COMPOSE-RESTART(1)

πŸ“¦ version 2.26.1, in debian trixie

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:

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 is 0, 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