diff options
author | Vincent Batts <vbatts@gmail.com> | 2015-01-22 06:33:27 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-22 06:34:21 +0700 |
commit | b8d9dc1de00651fe57615de0ab0dea96897e268f (patch) | |
tree | f1cc5093338d557d031836b5c694c5ce6480b323 /system/docker/config/rc.docker | |
parent | b3e77bae26666f130de563180266ec376757acb4 (diff) | |
download | slackbuilds-b8d9dc1de00651fe57615de0ab0dea96897e268f.tar.gz |
system/docker: Updated for version 1.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/docker/config/rc.docker')
-rw-r--r-- | system/docker/config/rc.docker | 3 |
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 } |