Intermediate
Docker & Containers
Q47 / 100
What does the "depends_on" key in docker-compose.yml control?
Correct! Well done.
Incorrect.
The correct answer is B) It controls the order in which Compose starts/stops containers, but by default only waits for the container to start, not for the application inside to be ready
B
Correct Answer
It controls the order in which Compose starts/stops containers, but by default only waits for the container to start, not for the application inside to be ready
Explanation
depends_on controls startup/shutdown order at the container level; it does not wait for the application inside the container to be ready to accept connections — health checks or wait-scripts are needed for that.
Progress
47/100