codegurukool.com · Free coding tutorials & online compiler

Home › Docker Tutorial › Compose commands

Compose commands

Start, watch and stop a whole stack.

Useful commands: docker compose up -d (start in the background), docker compose ps (status), docker compose logs -f (follow logs), docker compose build (rebuild images) and docker compose down (stop and remove). Add -v to down to delete volumes too.

Example code

docker compose down

Run this code in the online editor

← Docker ComposeDocker Hub: tag and push →