hello
I have a host works as gitlab runner to build projects with docker
and I built a mariadb container to serve all of my projects which they built as containers.
yesterday docker daemon stop working properly and I restart it.
when docker daemon trying to start, it starts to run the containers randomly but all of them need database container to start first to so they can connect to it and start.
docker daemon looped until I delete all containers first then I recreate mariadb container and run it
and rebuild all my projects again one by one.
how can I implement a solution to avoid this problem, is there any priority number could I set to each container to run them on specific order.
meaning:
starting first my host containers environment (mariadb, swag, etc…) then docker runs the projects containers next.
I hope my explanation the problem was understandable to you.
Thanks in advance.