Docker container dependency


sid

Recommended Posts

I am unable to get container dependency working - as in one container depends on and should start after another container is running.

e.g. My Home-assistant container depends on my maria-db container but I am unable to get them starting one after the other. 

In advanced view of docker containers, I have tried setting wait period for home-assistant to 100 - didn't work, then I tried setting wait period of maria-db to 100 and that of home-assistant to 300 - still the home-assistant container starts before the maria-db container.  

I am unsure how to solve this issue.

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.

Guest
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.