Docker-compose up, down, stop start difference

I can not find additional information about them.

Should we use docker stopfor containers that we started withdocker start

Or for docker-compose up?

What is the difference between stopping and lowering?

+31
source share
2 answers

In docker-compose help

stop               Stop services

down               Stop and remove containers and networks (optionally images and volumes as well)
+40
source
# Stop services only
docker-compose stop

# Stop and remove containers, networks..
docker-compose down 

# Down and remove volumes
docker-compose down --volumes 

# Down and remove images
docker-compose down --rmi <all|local> 
+16
source

All Articles