Bind mount ${groupDir}/log as /var/log

Before this patch we would bind mount ${groupDir} as /var/log,
but we wish to put data files in the group dir, so we should move
the logs to a subdirectory.

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2016-02-17 13:50:54 +00:00
parent 5da9891c8b
commit a049d233d2

View File

@ -14,7 +14,7 @@ start()
GROUPDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.groupDir="//' -e 's/".*//')"
mount --bind "${GROUPDIR}" /var/log
mount --bind "${GROUPDIR}/log" /var/log
eend $? "Failed to redirect logs to host"
}