From f09a78cd219b24d4308034c8dd13410cfe5fbec7 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 9 Jan 2014 12:09:25 -0500 Subject: [PATCH] ExecStartPre commands updated Docker-DCO-1.1-Signed-off-by: Lokesh Mandvekar (github: lsm5) systemd service no longer does '/bin/mount/ --make-rprivate /'. Core issue fixed by Alex Larsson (commit 157d99a). ip forwarding enabled. --- contrib/init/systemd/docker.service | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index aae7b6daf9..dc7cc450dd 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -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