VM
docker update --restart unless-stopped $container_name
Container
# start apache2 at boot up
update-rc.d apache2 defaults
# check init.d config
cat /etc/init.d/apache2
# check status
service --status-all
LeBlanc’s law: "Later equals never".
docker update --restart unless-stopped $container_name
# start apache2 at boot up
update-rc.d apache2 defaults
# check init.d config
cat /etc/init.d/apache2
# check status
service --status-all