All quizzes
Free quiz · 20 questions in the bank

Docker Compose quiz

Test your Docker Compose knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is Docker Compose?

In this round
  1. What is Docker Compose?
  2. What is the difference between `docker-compose up` and `docker-compose build` (or the `--build` flag)?
  3. What is a "service" in a `docker-compose.yml` file?
  4. What does the `environment` configuration key do in a Docker Compose service definition?
  5. What is a general benefit of checking a `docker-compose.yml` file into a project's version control alongside the application code?
  6. What is the purpose of an `.env` file used alongside a `docker-compose.yml` file?
  7. What does `docker-compose down` do, and how does it differ from `docker-compose stop`?
  8. What is the purpose of the `volumes` configuration in a Docker Compose service definition?
  9. What is the purpose of a `healthcheck` configuration on a Docker Compose service?
  10. What is a "named volume" in Docker Compose, as opposed to a "bind mount"?
  11. What does `docker-compose logs` (optionally with `-f` for "follow") let a developer do?
  12. What is the standard configuration file name Docker Compose looks for?
Gaps to close?
Read the curated Docker Compose notes — core concepts, patterns, interview prep.
Docker Compose notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka