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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to bring up?

A

docker compose up -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to bring down?

A

docker compose down

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Steps to run docker compose?

A
  1. make sure docker compose file is in the local project (don’t commit to repo),
  2. open docker desktop,
  3. 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 -
  4. start the test locally - should see activity in docker desktop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly