Docker Compose Flashcards
1
Q
What is Docker Compose?
A
Docker compose is a tool that was developed to help define and share multi-container applications. Can create YML file to define the services and spin up/tear down with single command
2
Q
How to bring up?
A
docker compose up -d
3
Q
How to bring down?
A
docker compose down
4
Q
Steps to run docker compose?
A
- make sure docker compose file is in the local project (don’t commit to repo),
- open docker desktop,
- if any stale images remove them
-docker compose down in the terminal
- delete them in docker desktop, - when docker is up will see it spinning up in the terminal - will see images show in docker desktop -
- start the test locally - should see activity in docker desktop