docker-compose

docker-compose

TLDR

List all running containers

$ docker-compose ps
copy

Create and start all containers in the background using a docker-compose.yml file from the current directory

$ docker-compose up -d
copy

Start all containers, rebuild if necessary

$ docker-compose up --build
copy

Start all containers using an alternate compose file

$ docker-compose --file [path/to/file] up
copy

Stop all running containers

$ docker-compose stop
copy

Stop and remove all containers, networks, images, and volumes

$ docker-compose down --rmi all --volumes
copy

Follow logs for all containers

$ docker-compose logs --follow
copy

Follow logs for a specific container

$ docker-compose logs --follow [container_name]
copy

Copied to clipboard
Stream 500+ movies for free and without signup