Using instructions for Docker auto-start on Linode VPS running Ubuntu 12.04 and Docker 0.8.1, the specified container does not start on reboot.
Once booted, I am able to
~$ sudo start [service-name]
and everything goes as planned, but I would also like to container to restart after a reboot.
Is the script in the tutorial not designed to handle reboots?
/etc/default/docker file contains one line:
/etc/init/service-name.conf is straight from the docker page:
description "service description" author "me" start on filesystem and started docker stop on runlevel [!2345] respawn script # Wait for docker to finish starting up first. FILE=/var/run/docker.sock while [ ! -e $FILE ] ; do inotifywait -t 2 -e create $(dirname $FILE) done /usr/bin/docker start -a db5e61a9afa8 end script