Docker Compose Commands CheatSheet
Docker
Virtualization
@see Docker commands cheatsheet
Run all the containers of the stack
- Use the
--buildflag to build the conatiners first.
docker compose up -d
Build all the containers of the stack without running them
- Use the
--no-cacheto build the images without using cache memory.
docker compose build
Remove all the conatiners of the stack
- Use the
--rmi localflag to remove the local images of the removed containers.
docker compose down