Compose is a tool for defining and running multi-container Docker applications. #docker-compose
Create and start containers, networks, and volumes for your compose project. #up #boot #start
docker compose up $up_optsStop and remove containers, networks, images, and volumes created by up. #down #stop #halt #nuke
docker compose down $down_optsList containers running in the current compose project. #ps #ls
docker compose psView output from all containers in the compose stack. #logs #tail #debug
docker compose logs -fBuild or rebuild services defined in the docker-compose.yml. #build #make
docker compose buildRestart all containers in the compose project. #restart #reboot
docker compose restartRun a one-off command in a running compose service. #exec #shell #bash
docker compose exec -it $service /bin/shRun a one-off command on a service. This is different from exec because it spins up a new container for the service rather than connecting to an already running one. #run #one-off
docker compose run --rm $service $commandParse, resolve and render the compose file in canonical format. Great for debugging syntax errors or checking how environment variables are evaluated. #config #lint #check #dry-run
docker compose configPull all images associated with your compose services. #pull #download #update
docker compose pullPush all locally built images for your compose services to their respective registries. #push #upload #publish
docker compose pushList all running compose projects across your entire system, not just the current directory. #ls-projects #projects
docker compose lsRemoves stopped service containers. By default, it does not remove any attached volumes. #rm #clean #purge
docker compose rm -fStart existing containers for a service. This is useful if you previously used docker compose stop. #start #boot
docker compose startForce stop service containers immediately instead of gracefully waiting. #kill #nuke #sigkill
docker compose killDisplay the running processes for all containers in the compose project. #top #htop #processes
docker compose topCopy files or folders between a service container and the local filesystem. #cp #copy #extract
docker compose cp $directionWatch build context for services and automatically rebuild/refresh containers when files are updated. Perfect for local development. #watch #dev #live-reload
docker compose watchScale a service to a specific number of replicas. #scale #replicas
docker compose up -d --scale $service=$replicas