Last active
March 30, 2017 02:24
-
-
Save popsikle/10b3d2d2b7331de59991 to your computer and use it in GitHub Desktop.
docker_opts cloud config
This file contains hidden or 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
#cloud-config | |
coreos: | |
units: | |
- name: docker.service | |
command: restart | |
content: | | |
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=http://docs.docker.com | |
After=docker.socket early-docker.target network.target | |
Requires=docker.socket early-docker.target | |
[Service] | |
Environment=TMPDIR=/var/tmp | |
EnvironmentFile=-/etc/docker_opts.env | |
EnvironmentFile=-/run/flannel_docker_opts.env | |
MountFlags=slave | |
LimitNOFILE=1048576 | |
LimitNPROC=1048576 | |
ExecStart=/usr/lib/coreos/dockerd --daemon --host=fd:// $DOCKER_OPTS $DOCKER_OPT_BIP $DOCKER_OPT_MTU $DOCKER_OPT_IPMASQ | |
write_files: | |
- path: /etc/docker_opts.env | |
permissions: 0644 | |
owner: core | |
content: | | |
DOCKER_OPTS="--log-level=warn --ip-forward=true --dns=172.21.128.5 --dns=172.21.128.6" | |
DOCKER_OPT_BIP="--bridge=br0" | |
DOCKER_OPT_MTU= | |
DOCKER_OPT_IPMASQ= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment