Docker Compose Down (Stop & Remove)

Stop and remove the project's containers and network (volumes survive unless you say otherwise).

Stops and removes containers, networks created by docker-compose up. Add -v to also remove named volumes. Does not remove images unless you add --rmi all.

When you need this: When stopping a development stack or removing a deployment during maintenance.

Variables

Command


        
8 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.