From e84371fc9c0f624c0cd045c3a414494b7af5a238 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 17 Jun 2016 13:57:33 +0100 Subject: [PATCH] Use "mkdir -p /run/log" in docker initfile For the "no error if existing" rather than "make parents" affect. Otherwise: moby:~# service docker restart * Stopping docker * Starting Docker ... mkdir: can't create directory '/run/log': File exists [ ok ] Signed-off-by: Ian Campbell --- alpine/packages/docker/etc/init.d/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine/packages/docker/etc/init.d/docker b/alpine/packages/docker/etc/init.d/docker index afea1233c..3fef1f42c 100755 --- a/alpine/packages/docker/etc/init.d/docker +++ b/alpine/packages/docker/etc/init.d/docker @@ -55,7 +55,7 @@ start() then DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')" 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 --bind "${DRIVERDIR}/log" /var/log fi