Skip to content

Commit

Permalink
ExecStartPre commands updated
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com> (github: lsm5)

systemd service no longer does '/bin/mount/ --make-rprivate /'.
Core issue fixed by Alex Larsson (commit 157d99a).

ip forwarding enabled.
  • Loading branch information
lsm5 committed Jan 29, 2014
1 parent c82a2d1 commit f09a78c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/init/systemd/docker.service
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[Unit]
Description=Docker Application Container Engine
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
After=network.target

[Service]
ExecStartPre=/bin/mount --make-rprivate /
Type=simple
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1
ExecStart=/usr/bin/docker -d
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit f09a78c

Please sign in to comment.