Skip to content

Stop Compose Services

When to Use This Guide

Use this guide to stop and clean up the containers a Compose file started.


Quick Command

docker compose down

Step 1: Stop and Remove the Stack

Run this from the folder containing your compose.yaml.

docker compose down

This stops and removes the containers and the network. Your named volumes are kept, so data is safe.


Step 2: Remove Volumes Too (Optional)

To wipe the data as well, add -v.

docker compose down -v

Warning

docker compose down -v permanently deletes the volumes and everything in them. Use it only for a clean start.


Stop Without Removing

To pause the stack but keep the containers for later:

docker compose stop

Start them again with docker compose start.


Common Issues

Data disappeared

You likely ran down -v, which removes volumes. Use plain down to keep data.