February 10, 20179 yr 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.
February 13, 20179 yr Author 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?
October 6, 20205 yr 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.
October 6, 20205 yr Community Expert You can drag / drop containers on the Docker page to change their startup order, and specify a wait time for each.
October 15, 20205 yr 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, 20205 yr by phil1c
October 27, 20205 yr 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.
Archived
This topic is now archived and is closed to further replies.