Created
October 12, 2015 11:52
-
-
Save l15k4/bf7656d9d8c14979c6c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Log Entries | |
After=docker.service | |
[Service] | |
Restart=always | |
RestartSec=1m | |
TimeoutStartSec=0 | |
KillMode=none | |
EnvironmentFile=/etc/environment | |
ExecStartPre=-/usr/bin/docker kill %p-%i | |
ExecStartPre=-/usr/bin/docker rm %p-%i | |
ExecStartPre=/usr/bin/docker pull logentries/docker-logentries | |
ExecStart=/bin/bash -c "/usr/bin/docker run \ | |
--name %p-%i \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
logentries/docker-logentries -l ba74a9c3-1fe6-4f4e-abbe-41307c37b07f -j -a host=$(uname -n)" | |
ExecStop=/usr/bin/docker stop %p-%i | |
ExecStopPost=-/usr/bin/docker rm %p-%i | |
[X-Fleet] | |
Conflicts=%p@*.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment