docker dependency on another container - depends_on


7 posts in this topic Last Reply

Recommended Posts

goal: I want my mariadb container to start before kodi-server container tries to start.

I know there is depends_on for docker but how do I use it with unraid's docker setup?

 

I tried to add it via extra parameters like: --depends_on="mariadb"

But that breaks the container, as its an invalid flag.

Link to post
28 minutes ago, zoggy said:

goal: I want my mariadb container to start before kodi-server container tries to start.

Easy solution is to set maria to start up before kodi (drag and drop on the docker page to set order.  You can also set delays via advanced view)

Link to post
2 hours ago, zoggy said:

I tried to add it via extra parameters like: --depends_on="mariadb"

But that breaks the container, as its an invalid flag.

depends_on is a "docker compose" flag and not a "docker" flag in itself, where unraid doesn't use docker compose natively

Edited by tjb_altf4
Link to post
7 hours ago, Squid said:

Easy solution is to set maria to start up before kodi (drag and drop on the docker page to set order.  You can also set delays via advanced view)

This falls flat if you use the --restart="on-failure" because the start logic isnt taken into consideration.

Or if CA backup 'restores' the stuff stopped it doesnt do it in the configured order.

Link to post
  • 6 months later...
On 5/28/2020 at 8:47 PM, zoggy said:

This falls flat if you use the --restart="on-failure" because the start logic isnt taken into consideration.

Or if CA backup 'restores' the stuff stopped it doesnt do it in the configured order.

Hi, did you find a usable solution?

I am concerned form my guacamole integration...

Link to post

I use --restart="on-failure" for my kodi docker.

If I stop the docker manually via the unraid gui it stops cleanly. If CA backup tries to stop the docker it shuts down but then restarts as it views it as a failure... why this is the case I'm not sure. It seems like a bug with CA backup.

 

So basically I stopped using CA backup automatically and just go stop the dockers manually then fire off a manual CA backup. Not a great solution I know.

 

 

 

 

Link to post

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.