Browse code

ExecStartPre commands updated

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.

Lokesh Mandvekar authored on 2014/01/10 02:09:25
Showing 1 changed files
... ...
@@ -1,11 +1,13 @@
1 1
 [Unit]
2
-Description=Docker Application Container Engine 
2
+Description=Docker Application Container Engine
3 3
 Documentation=http://docs.docker.io
4 4
 After=network.target
5 5
 
6 6
 [Service]
7
-ExecStartPre=/bin/mount --make-rprivate /
7
+Type=simple
8
+ExecStartPre=/usr/sbin/sysctl -w net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1
8 9
 ExecStart=/usr/bin/docker -d
10
+Restart=on-failure
9 11
 
10 12
 [Install]
11 13
 WantedBy=multi-user.target