docker compose down --timeout 30

Category: Docker

docker compose down --timeout 30

Stop services with a 30-second grace period

down stops and removes containers, networks, and default volumes of the project. --timeout sets how long compose waits for graceful shutdown before force-killing, useful for slow-draining services. Add --volumes to also delete named volumes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.