Skip to content

Instantly share code, notes, and snippets.

@thoraxe
Forked from kmurudi/docker-lab.service
Last active June 29, 2017 14:55
Show Gist options
  • Save thoraxe/1660128933add797d1a1d46bfe2ac4d2 to your computer and use it in GitHub Desktop.
Save thoraxe/1660128933add797d1a1d46bfe2ac4d2 to your computer and use it in GitHub Desktop.
[Unit]
Description=Lab guide container
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker create --name %n -p 80:8080 --env-file /etc/sysconfig/workshopper docker.io/osevg/workshopper:0.1
ExecStart=/opt/bin/systemd-docker run --name %n
Restart=always
RestartSec=10s
Type=notify
NotifyAccess=all
TimeoutStartSec=120
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment