blacklabelops / volumerize

Docker Volume Backups Multiple Backends
https://hub.docker.com/r/blacklabelops/volumerize/
MIT License
558 stars 77 forks source link

VOLUMERIZE_CONTAINERS stop start order #48

Closed dicastro closed 6 years ago

dicastro commented 6 years ago

I have 2 containers:

I have volumerize container with variable VOLUMERIZE_CONTAINERS="container_server container_db"

I've noticed that the containers in variable VOLUMERIZE_CONTAINERS are stopped and started in same order (the order in the list).

Following with the example, container_server is stopped at first place, and then container_db is stopped. That's the desired behaviour.

However when restarting the containers, container_server is started at first, but there is an error that says:

Error response from daemon: Cannot link to a non running container: /container_db AS /container_server/db
Error: failed to start containers: container_server

I think containers should be stopped in the indicated order and restarted in reverse order. What do you think?

blacklabelops commented 6 years ago

Thanks for the solution!