tuxbass Posted February 10, 2017 Share Posted February 10, 2017 What options do we have for ensuring dockers startup order? When dockers are --link'ed together, then linker container would fail to start up if linkee is not already running. Quote Link to comment
Squid Posted February 10, 2017 Share Posted February 10, 2017 only option: http://lime-technology.com/forum/index.php?topic=53731.0 Quote Link to comment
tuxbass Posted February 13, 2017 Author Share Posted February 13, 2017 Nice. Could I also propose integrating with https://github.com/vishnubob/wait-for-it, so more intelligent waiting logic could be used instead of plain sleep? Quote Link to comment
trevisthomas Posted October 6, 2020 Share Posted October 6, 2020 Is there a currently supported solution for this problem? I have a website running in docker and i need the DB to be up and running before the web server container starts. Quote Link to comment
trurl Posted October 6, 2020 Share Posted October 6, 2020 You can drag / drop containers on the Docker page to change their startup order, and specify a wait time for each. Quote Link to comment
phil1c Posted October 15, 2020 Share Posted October 15, 2020 (edited) Does the shutdown order work in reverse of the startup order? As in, if I set dockers to start up in the order "1 -> 2 -> 3", does it shut them down in the order "3 -> 2 -> 1"? Edited October 15, 2020 by phil1c Quote Link to comment
kennymc.c Posted October 27, 2020 Share Posted October 27, 2020 On 10/15/2020 at 9:29 PM, phil1c said: Does the shutdown order work in reverse of the startup order? As in, if I set dockers to start up in the order "1 -> 2 -> 3", does it shut them down in the order "3 -> 2 -> 1"? Apparently not, because when I stop a particular container I see an error message due to a missing database connection, which is always started before that. So the shutdown uses the same order which makes no sense for me. Quote Link to comment
Recommended Posts
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.