`up`, `down`, `stop`, `start`, `restart`: what is the difference?
BeginnerConceptDocker Compose
Answer
up creates and starts (and recreates changed services); down stops and removes containers and networks (and volumes with -v, images with --rmi); stop stops but keeps containers; start starts existing stopped containers; restart stops and starts without re-reading changed config.
More on Docker Compose
What is Docker Compose and what problem does it solve?Beginner`docker-compose` vs `docker compose`?BeginnerShow a minimal Compose file with a web app and a database.BeginnerWhat does `depends_on` guarantee?IntermediateHow do containers in Compose reach each other?BeginnerHow does Compose choose the project name and why does it matter?Intermediate