Ok maybe I misunderstood, but isn’t it default docker behaviour to start previously running containers that were running when you did a shutdown on your computer?
I didnt supply any --restart flag when i created the containers.
OK, that could explain why it worked when i used docker around version 0.9 but no longer at version 1.2+.
Anyway, i tried like you suggested to set --restart=“always” flag on all my containers and now it works perfectly.
They start when i start my computer. So i guess the logic is now that as long as docker starts, the containers should also start.
I had to do it this way because using the default upstart script was unreliable, sometimes the containers would start sometimes not.