Interview Prep/Docker/Docker Compose

`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.

All Docker questions Roadmap: Docker & containers

More on Docker Compose