compose up docker code example
Example 1: docker compose run
# One single docker-compose.yml file
docker-compose up --build -d --remove-orphans
# Specify docker-compose.yml file to run
docker-compose -f docker-compose.yml up --build -d --remove-orphans
Example 2: list dockers docker compose
docker-compose ps
Example 3: whats up with docker compose and orphan containers
docker-compose -p my_project_1 up -d