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)
test_server
container in the docker registry.test_server
image ? Where does this come from ? Nothing of this kind is available in the docker registry. Past your commands and their output when you do this without upstart. Pastsudo docker images
output andsudo docker ps -a
too.