summaryrefslogtreecommitdiff
path: root/system/docker/config/rc.docker
diff options
context:
space:
mode:
Diffstat (limited to 'system/docker/config/rc.docker')
-rw-r--r--system/docker/config/rc.docker3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/docker/config/rc.docker b/system/docker/config/rc.docker
index bf6e183e4c..0199623116 100644
--- a/system/docker/config/rc.docker
+++ b/system/docker/config/rc.docker
@@ -12,6 +12,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
BASE=docker
+UNSHARE=/usr/bin/unshare
DOCKER=/usr/bin/$BASE
DOCKER_PIDFILE=/var/run/$BASE.pid
DOCKER_LOG=/var/log/docker.log
@@ -37,7 +38,7 @@ docker_start() {
rm -f ${DOCKER_PIDFILE}
fi
fi
- nohup ${DOCKER} -d -p ${DOCKER_PIDFILE} ${DOCKER_OPTS} >> ${DOCKER_LOG} 2>&1 &
+ nohup "${UNSHARE}" -m -- ${DOCKER} -d -p ${DOCKER_PIDFILE} ${DOCKER_OPTS} >> ${DOCKER_LOG} 2>&1 &
fi
}