mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
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:
parent
5da9891c8b
commit
a049d233d2
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user