DOCKER-COMPOSE-DOWN(1)

πŸ“¦ version 2.26.1, in debian trixie

πŸ’– docker-compose-down πŸ’–

okay bestie, so this is the docker-compose-down manual page β€” it's the docker compose down girlie, and she is here to clean up your mess after you've been out there living your best container life. ✨


🌸 NAME 🌸

docker-compose-down β€” stop and remove containers, networks. that's it, that's the whole vibe. she ends the party and takes out the trash. πŸ—‘οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

docker compose down [OPTIONS] [SERVICES]

πŸ’… DESCRIPTION πŸ’…

So basically β€” she stops containers and removes containers, networks, volumes, and images that were created by up. like, she's the cleanup crew for everything your up made. no cap.

By default, the only things removed are:

  • Containers for services defined in the Compose file. πŸ«™
  • Networks defined in the networks section of the Compose file. 🌐
  • The default network, if one is used. πŸ›£οΈ
Networks and volumes defined as external are never removed. like, never ever. she will not touch them. they're not hers. πŸ™…β€β™€οΈ

Anonymous volumes are not removed by default. But here's the tea β€” because they don't have a stable name, they are not automatically mounted by a subsequent up. so like, they're just kinda floating out there in the void. 😭 For data that needs to persist between updates, use explicit paths as bind mounts or named volumes. that's the move, fr fr. πŸ’–


✨ OPTIONS ✨

  • -h, --help[=false] β€” help for down. she'll explain herself. πŸ’β€β™€οΈ
  • --remove-orphans[=false] β€” Remove containers for services not defined in the Compose file. yes, the orphans. the ones nobody claimed. she's taking them too. πŸ₯Ί
  • --rmi="" β€” Remove images used by services. "local" remove only images that don't have a custom tag ("local"|"all"). choose your fighter. πŸ”₯
  • -t, --timeout=0 β€” Specify a shutdown timeout in seconds. give her a lil grace period before she pulls the plug. ⏳
  • -v, --volumes[=false] β€” Remove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers. careful, this one is spicy β€” it deletes the volume data. πŸŒΆοΈπŸ’€

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • --dry-run[=false] β€” Execute command in dry run mode. she'll pretend. she'll rehearse. but she won't actually do it. main character rehearsal energy. 🎭

🌈 SEE ALSO 🌈


and that's the whole page, bestie!! this one came from Mar 2025 and the source is the docker-compose-down(1) manual, section 1. go forth and down responsibly. πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from