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/5Score 0

What is Docker Compose?

Questions in this quiz
  1. What is Docker Compose?
  2. What is a common reason a development team uses Docker Compose specifically for local development environments, even if production deployment uses a different orchestration tool like Kubernetes?
  3. What does Docker Compose's automatic networking between services provide, e.g. a `web` service being able to connect to a `db` service by simply using the hostname `db`?
  4. What is the difference between the `image` and `build` keys in a Docker Compose service definition?
  5. What does `docker-compose down` do, and how does it differ from `docker-compose stop`?
  6. What does the `ports` configuration key do in a Docker Compose service definition, e.g. `ports: - "8080:80"`?
  7. What is the purpose of a `healthcheck` configuration on a Docker Compose service?
  8. What is the purpose of an `.env` file used alongside a `docker-compose.yml` file?
  9. What is the standard configuration file name Docker Compose looks for?
  10. How would you start all services defined in a `docker-compose.yml` file?
  11. What does `docker-compose logs` (optionally with `-f` for "follow") let a developer do?
  12. What is the purpose of `depends_on` in a Docker Compose service definition?
Gaps to close?
Read the curated Docker Compose notes — core concepts, patterns, interview prep.
Docker Compose notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web