How can we control the startup order of services in Docker compose?

In Docker compose we can use the depends_on option to control the startup order of services.
With compose, the services will start in the dependency order. Dependencies can be defined in the options like- depends_on, links, volumes_from, network_mode etc.
But Docker does not wait for until a container is ready.

Read the full book at www.amazon.com
Posted in Docker, Docker Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*