mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
fix docker log output
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
7be084d189
commit
a31db284e3
@ -11,7 +11,7 @@ command_args="daemon -p \"${pidfile}\" ${DOCKER_OPTS}"
|
|||||||
if cat /proc/cmdline | grep -q 'com.docker.groupDir'
|
if cat /proc/cmdline | grep -q 'com.docker.groupDir'
|
||||||
then
|
then
|
||||||
GROUPDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.groupDir="//' -e 's/".*//')"
|
GROUPDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.groupDir="//' -e 's/".*//')"
|
||||||
[ -d ${GROUPDIR} ] && DOCKER_LOGFILE="${GROUPDIR}/${RC_SVCNAME}.log}"
|
[ -d "${GROUPDIR}" ] && DOCKER_LOGFILE="${GROUPDIR}/${RC_SVCNAME}.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCKER_LOGFILE="${DOCKER_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
|
DOCKER_LOGFILE="${DOCKER_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
|
||||||
|
Loading…
Reference in New Issue
Block a user