Skip to content

Commit

Permalink
Merge pull request #10225 from vbatts/vbatts-init_mount_namespaces
Browse files Browse the repository at this point in the history
daemon mount namespaces
  • Loading branch information
Jessie Frazelle committed Jan 22, 2015
2 parents e13559a + 6bb6586 commit fcc4abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions contrib/init/systemd/docker.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Requires=docker.socket

[Service]
ExecStart=/usr/bin/docker -d -H fd://
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576

Expand Down
3 changes: 2 additions & 1 deletion contrib/init/sysvinit-redhat/docker
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
. /etc/rc.d/init.d/functions

prog="docker"
unshare=/usr/bin/unshare
exec="/usr/bin/$prog"
pidfile="/var/run/$prog.pid"
lockfile="/var/lock/subsys/$prog"
Expand All @@ -46,7 +47,7 @@ start() {
prestart
printf "Starting $prog:\t"
echo "\n$(date)\n" >> $logfile
$exec -d $other_args &>> $logfile &
"$unshare" -m -- $exec -d $other_args &>> $logfile &
pid=$!
touch $lockfile
# wait up to 10 seconds for the pidfile to exist. see
Expand Down

0 comments on commit fcc4abc

Please sign in to comment.