Stop and remove project containers and networks.
docker compose downStop and remove project containers and networks.
docker compose downStop and remove project containers and networks.
docker compose down| Option / clause | Description |
|---|---|
--remove-orphans | Remove containers for services absent from the Compose file. |
--rmi <local|all> | Remove images created or used by the project. |
-v, --volumes | Remove named and anonymous volumes; this may permanently delete stored data. |
-t, --timeout <seconds> | Set the shutdown timeout before containers are killed. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.