docker compose down
docker compose down [-v]
Risk: Careful
What it does
Stops and removes the containers and network. Volumes stay.
When to use it
When you are done for the day.
Example
$ docker compose downClear the table, keep the lockers.
$ docker compose down -vAlso delete the volumes and their data.
Learn it in: Run the stack: up and down · Official docs