Skip to content

Instantly share code, notes, and snippets.

@robszumski robszumski/gist:1cbb52dec09b896ca63f Secret
Last active Aug 29, 2015

Embed
What would you like to do?
[Unit]
Description=etcd 0.5 alpha
After=docker.service
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill etcd
ExecStartPre=-/usr/bin/docker rm etcd
ExecStartPre=/usr/bin/docker pull quay.io/coreos/etcd:v0.5.0_alpha.4
ExecStart=/bin/bash -c "/usr/bin/docker run \
-p 2379:2379 \
-p 2380:2380 \
--name etcd \
-v /etc/ssl/certs/:/etc/ssl/certs/ \
quay.io/coreos/etcd:v0.5.0_alpha.4 \
-name %m \
-listen-client-urls http://0.0.0.0:2380 \
-advertise-client-urls http://$COREOS_PRIVATE_IPV4:2380 \
-listen-peer-urls http://0.0.0.0:2379 \
-initial-advertise-peer-urls http://$COREOS_PRIVATE_IPV4:2379 \
-discovery http://discovery.etcd.io/<token>"
ExecStop=/usr/bin/docker kill etcd
[X-Fleet]
Conflicts=etcd*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.