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
What is Docker Compose?
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?
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`?
What is the difference between the `image` and `build` keys in a Docker Compose service definition?
What does `docker-compose down` do, and how does it differ from `docker-compose stop`?
What does the `ports` configuration key do in a Docker Compose service definition, e.g. `ports: - "8080:80"`?
What is the purpose of a `healthcheck` configuration on a Docker Compose service?
What is the purpose of an `.env` file used alongside a `docker-compose.yml` file?
What is the standard configuration file name Docker Compose looks for?
How would you start all services defined in a `docker-compose.yml` file?
What does `docker-compose logs` (optionally with `-f` for "follow") let a developer do?
What is the purpose of `depends_on` in a Docker Compose service definition?