From d8592eaff8bddb6f29c48cc39dec70db884eda00 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Mon, 15 Jun 2015 10:34:59 -0700 Subject: [PATCH] Revert "contrib/init: unshare mount namespace for inits" This reverts commit b6569b6b82df4c5e29ee8f5ebd9db7e36919cefd. Signed-off-by: David Calavera --- contrib/init/openrc/docker.initd | 6 ++---- contrib/init/sysvinit-debian/docker | 7 +++---- contrib/init/upstart/docker.conf | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/contrib/init/openrc/docker.initd b/contrib/init/openrc/docker.initd index f251e9af5a..a9d21b1708 100755 --- a/contrib/init/openrc/docker.initd +++ b/contrib/init/openrc/docker.initd @@ -7,7 +7,6 @@ DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log} DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid} DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker} DOCKER_OPTS=${DOCKER_OPTS:-} -UNSHARE_BINARY=${UNSHARE_BINARY:-/usr/bin/unshare} start() { checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE" @@ -17,12 +16,11 @@ start() { ebegin "Starting docker daemon" start-stop-daemon --start --background \ - --exec "$UNSHARE_BINARY" \ + --exec "$DOCKER_BINARY" \ --pidfile "$DOCKER_PIDFILE" \ --stdout "$DOCKER_LOGFILE" \ --stderr "$DOCKER_LOGFILE" \ - -- --mount \ - -- "$DOCKER_BINARY" -d -p "$DOCKER_PIDFILE" \ + -- -d -p "$DOCKER_PIDFILE" \ $DOCKER_OPTS eend $? } diff --git a/contrib/init/sysvinit-debian/docker b/contrib/init/sysvinit-debian/docker index 0022400ff1..edb7c00170 100755 --- a/contrib/init/sysvinit-debian/docker +++ b/contrib/init/sysvinit-debian/docker @@ -30,7 +30,6 @@ DOCKER_SSD_PIDFILE=/var/run/$BASE-ssd.pid DOCKER_LOGFILE=/var/log/$BASE.log DOCKER_OPTS= DOCKER_DESC="Docker" -UNSHARE=${UNSHARE:-/usr/bin/unshare} # Get lsb functions . /lib/lsb/init-functions @@ -104,11 +103,11 @@ case "$1" in log_begin_msg "Starting $DOCKER_DESC: $BASE" start-stop-daemon --start --background \ --no-close \ - --exec "$UNSHARE" \ + --exec "$DOCKER" \ --pidfile "$DOCKER_SSD_PIDFILE" \ --make-pidfile \ - -- --mount \ - -- "$DOCKER" -d -p "$DOCKER_PIDFILE" \ + -- \ + -d -p "$DOCKER_PIDFILE" \ $DOCKER_OPTS \ >> "$DOCKER_LOGFILE" 2>&1 log_end_msg $? diff --git a/contrib/init/upstart/docker.conf b/contrib/init/upstart/docker.conf index 52721312dd..1fa9512976 100644 --- a/contrib/init/upstart/docker.conf +++ b/contrib/init/upstart/docker.conf @@ -39,7 +39,7 @@ script if [ -f /etc/default/$UPSTART_JOB ]; then . /etc/default/$UPSTART_JOB fi - exec unshare -m -- "$DOCKER" -d $DOCKER_OPTS + exec "$DOCKER" -d $DOCKER_OPTS end script # Don't emit "started" event until docker.sock is ready.