Docker start order and delays not working


Go to solution Solved by JonathanM,

Recommended Posts

Version 6.12.4. 

 

Like many people, I need some containers to wait for others before starting up to avoid issues. So I put them in order, and I did some delays. My understanding is that they'd boot top-down, and delay when they hit a delay. 

 

But as you can see from my delays and uptimes, that definitely isn't happening. Can someone explain what I'm doing wrong here?

 

image.thumb.png.8af478f3c829bf0e025b5fe7aa3ca020.png

 

 

Link to comment
1 hour ago, Merijeek said:

OK, I don't restart the array all THAT often. 

 

I was basing my complaint on my stopping all containers and then hitting the 'start all' button. Is that...incorrect? 

The order and delay only applies to array start. Start all means exactly that, start all the containers. Auto start refers to containers you want started without manual intervention when the array starts.

 

Currently there is no mechanism in place to recreate array start conditions for the list of containers without actually stopping and starting the array. It's pretty easy to write a script to start containers, so if you regularly stop all your containers without stopping the array I'd recommend just scripting it.

 

docker start <container name>

sleep 60

docker start <container name>

sleep 30

 

etc etc

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.