Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created February 24, 2015 08:37
Show Gist options
  • Save yuuichi-fujioka/f649ab57608a807d6010 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/f649ab57608a807d6010 to your computer and use it in GitHub Desktop.
docker container with upstart
description "Redis container"
author "Me"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
/usr/bin/docker start -a ${container name}
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment