Merge pull request #240 from dsheets/remove-fixed-export-mounts

docker init: remove fixed host export mounts
This commit is contained in:
Justin Cormack 2016-07-04 11:10:17 +01:00 committed by GitHub
commit 50dc1ee4b0

View File

@ -42,13 +42,6 @@ start()
export no_proxy="$(mobyconfig get proxy/exclude)"
fi
grep -q "osxfs /tmp" /proc/mounts || ( [ -d /Mac/tmp ] && mount --bind /Mac/tmp /tmp )
for d in Users Volumes private
do
[ -d /Mac/$d ] && [ ! -d $d ] && mkdir -p /$d && mount --bind /Mac/$d /$d
done
# shift logs onto host before docker starts
# busybox reopens its log files every second
if cat /proc/cmdline | grep -q 'com.docker.driverDir'