Created
September 1, 2015 21:12
-
-
Save pguelpa/9e472c756809e60d7009 to your computer and use it in GitHub Desktop.
dnsmasq
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=dnsmasq | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=10m | |
ExecStartPre=-/usr/bin/docker kill dnsmasq | |
ExecStartPre=-/usr/bin/docker rm dnsmasq | |
ExecStartPre=/usr/bin/docker pull jamesawesome/dnsmasq:latest | |
ExecStart=/bin/sh -c "docker run --name dnsmasq --net=host -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN jamesawesome/dnsmasq:latest -S 10.12.0.2" | |
ExecStop=/usr/bin/docker stop -t 30 dnsmasq | |
[Install] | |
WantedBy=multi-user.target | |
[X-Fleet] | |
Global=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment