mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-26 04:03:11 +00:00
Merge pull request #218 from ijc25/mkdir-p
Use "mkdir -p /run/log" in docker initfile
This commit is contained in:
commit
01ecbd25e8
@ -55,7 +55,7 @@ start()
|
|||||||
then
|
then
|
||||||
DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
|
DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
|
||||||
if ! grep -q "osxfs on /var/log" /proc/mounts ; then
|
if ! grep -q "osxfs on /var/log" /proc/mounts ; then
|
||||||
mkdir /run/log
|
mkdir -p /run/log
|
||||||
mount -o bind /var/log /run/log
|
mount -o bind /var/log /run/log
|
||||||
mount --bind "${DRIVERDIR}/log" /var/log
|
mount --bind "${DRIVERDIR}/log" /var/log
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user