Skip to content

Instantly share code, notes, and snippets.

@csbogdan
Created January 29, 2018 23:36
Show Gist options
  • Save csbogdan/5fb50c6081641ad64e20cd631771d8d1 to your computer and use it in GitHub Desktop.
Save csbogdan/5fb50c6081641ad64e20cd631771d8d1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Network fabric for containers
Documentation=https://github.com/coreos/flannel
Before=docker.service
After=network-online.target
[Service]
Type=notify
Restart=always
RestartSec=5
EnvironmentFile=-/etc/default/flannel
LimitNOFILE=65536
ExecStart=/bin/flanneld -etcd-endpoints=${ETCD_ENDPOINTS} --ip-masq=true
# Update docker options
ExecStartPost=/etc/mk-docker-opts.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment