Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Pheak Pheasa
Pheak Pheasa

Posted on

Docker compose down with remove all everything related.

To stop and remove everything related to a Docker Compose setup (containers, networks, volumes, images, etc.), you can use the following command:

docker-compose down--rmi all--volumes--remove-orphans
Enter fullscreen modeExit fullscreen mode

Explanation:

  • down: Stops and removes the containers, networks, and other resources created bydocker-compose up.
  • --rmi all: Removes all images used by any service.
  • --volumes: Removes all named volumes declared in thevolumes section of thedocker-compose.yml file.
  • --remove-orphans: Removes any containers not defined in thedocker-compose.yml file but are part of the same project.

This command will completely clean up everything related to the Docker Compose project.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
aniruddhaadak profile image
ANIRUDDHA ADAK
AI Agent Engineer focused on creating self-directed AI systems that learn, adapt, and execute multi-step tasks without human intervention.

Absolutely incredible! 😻.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Don't talk, just do it.
  • Joined

More fromPheak Pheasa

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp