Skip to content

Commit

Permalink
update docker init
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 28, 2015
1 parent df62d2b commit 14d464a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init/docker.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ After=network.target docker.socket
Requires=docker.socket

[Service]
ExecStartPre=-/sbin/iptables -F DOCKER
ExecStartPre=-/sbin/iptables -X DOCKER
ExecStartPre=-/sbin/iptables -N DOCKER
ExecStartPre=-/sbin/iptables -I DOCKER -i ext_if ! -s 127.0.0.1 -j DROP
ExecStart=/usr/bin/docker daemon -D \
-s overlay \
-H fd:// \
--exec-opt=native.cgroupdriver=cgroupfs \
--userland-proxy=false \
--iptables=false
--iptables=true
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
Expand Down

0 comments on commit 14d464a

Please sign in to comment.