Skip to content

Instantly share code, notes, and snippets.

@philips
Created May 20, 2016 23:02
Show Gist options
  • Save philips/4ba6f9888499266b0ab09d95991e6784 to your computer and use it in GitHub Desktop.
Save philips/4ba6f9888499266b0ab09d95991e6784 to your computer and use it in GitHub Desktop.
[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]
EnvironmentFile=-/run/flannel_docker_opts.env
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
ExecStart=/usr/bin/rkt run --inherit-env --stage1-path=/usr/share/rkt/stage1-fly.aci \
--volume etc,kind=host,source=/etc \
--mount volume=etc,target=/etc \
--volume var-lib-docker,kind=host,source=/var/lib \
--mount volume=var-lib-docker,target=/var/lib \
--volume run,kind=host,source=/run \
--mount volume=run,target=/run \
--volume var-run,kind=host,source=/var/run \
--mount volume=var-run,target=/var/run \
--volume usr-lib,kind=host,source=/usr/lib \
--mount volume=usr-lib,target=/usr/lib \
--volume usr-lib64,kind=host,source=/usr/lib64 \
--mount volume=usr-lib64,target=/usr/lib64 \
--volume lib64,kind=host,source=/lib64 \
--mount volume=lib64,target=/lib64 \
--volume usr-bin,kind=host,source=/usr/bin \
--mount volume=usr-bin,target=/usr/bin \
--volume usr-sbin,kind=host,source=/usr/sbin \
--mount volume=usr-sbin,target=/usr/sbin \
--net=host --insecure-options=image docker://docker:1.10.1 --exec /usr/local/bin/docker-entrypoint.sh -- daemon --host=fd://
# $DOCKER_OPTS $DOCKER_OPT_BIP $DOCKER_OPT_MTU $DOCKER_OPT_IPMASQ
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment