Dockerfile create one container. Docker Compose is used to create multi container application. Docker compose use Dockerfile to create container.
To install docker-compose on Ubuntu/Debian, run
apt install docker-compose
Docker compose save its configuration in file docker-compose.yml in YML format.
docker-compose quick start tutorial available at
To build image, run
To build image and start container, run
docker-compose up -d
To stop containers created from docker-compose, run
To delete all containers, run