Docker Dependencies for auto-start

Recommended Posts

So I understand that we have "wait" and also can organize docker containers from top to bottom for auto-start priority, but is there a way we can add in dependencies?
For instance, I don't want my Wordpress container to start until after I'm sure that my MariaDB container is running. Or for Sonarr/Radarr, I don't want them up and running until my download container is good.

Link to comment

You can turn off auto start for the downstream dependencies and script their startup manually.


@Squid had a great container startup management tool with dependency checking that was plowed under when the OS introduced wait and ordering natively. Yes, I'm still bitter about that.🙂


So many of his superior implementations get tossed aside when the OS introduces a watered down version of the same functionality.

3 hours ago, itimpi said:


I am not sure how you could tell that a container had finished starting up in any reliable manner.

Query the service in question from the command line. for example if you telnet to port 3306 if the mariadb is running it will spit out some version info and close the connection. If no response, it's not running.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.