Restarts one or more service containers.
Section: Project Lifecycle
Restart services
bash
bash
docker compose restartExplanation
Useful after config changes external to the image.
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 Project Lifecycle
Start services in foreground
Builds, creates, and starts all services defined in the Compose project.
Start existing containers
Starts previously created services without recreating them.