I'm trying to get my container to run on startup using upstart.
As the tutorial said - I created /etc/init/nginx_server.conf
description "Nginx docker"
author "Me"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
/usr/bin/docker run -d -p 80:80 test_server
end script
Running of latest Amazon linux (amzn-ami-hvm-2015.03.0.x86_64-gp2
)
The container isn't running at all (running docker ps -a
doesn't show it at all)