Docker Compose Commands
Command to start existing containers for a service:
docker-compose start
Command to stop running containers without removing them:
docker-compose stop
Command to pause running containers of a service:
docker-compose pause
Command to unpause paused containers of a service:
docker-compose unpause
Command to list containers:
docker-compose ps
Command to build, (re)create, start, and attach to containers for a service:
docker-compose up
Command to stop containers and remove containers, networks, volumes, and images created by up:
docker-compose down
Docker Compose – How To Execute Multiple Commands?
Docker Compose is an orchestration tool that comes with Docker and enables users to run and manage multi-container applications using a YAML format file. Docker Compose comes pre-installed with Docker and does not require any additional installation or activation. In this article, we will explore what Docker Compose is. and how we can execute multiple commands using Docker Compose.