Docker Compose: Commands Cheat Sheet

docker-compose start# Starts existing containers for a service.
docker-compose stopStops running containers without removing them.
docker-compose pausePauses running containers of a service.
docker-compose unpauseUnpauses paused containers of a service.
docker-compose psLists containers.
docker-compose upBuilds, (re)creates, starts, and attaches to containers for a service.
docker-compose downStops containers and removes containers, networks, volumes, and images created by up.

Leave a Reply

Your email address will not be published. Required fields are marked *