0 votes
in Docker by

In a docker-compose.yml file, what is the function of the depends_on key?

a) Specifies the base images for services

b) Specifies the build context for services

c) Specifies the order in which services are started

d) Specifies the network links between services

1 Answer

0 votes
by
c) Specifies the order in which services are started

Explanation:

In a docker-compose.yml file, the depends_on key indicates the order in which services should be started. A service with a depends_on key will not start until the services it depends on have been started.
...