mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 19:54:38 +00:00
Merge pull request #157 from justincormack/movemount
move log mount to hostsettings not docker startup
This commit is contained in:
commit
79409e4d00
@ -10,13 +10,6 @@ start()
|
|||||||
{
|
{
|
||||||
ebegin "Starting Docker"
|
ebegin "Starting Docker"
|
||||||
|
|
||||||
# shift logs onto host before docker starts
|
|
||||||
# busybox reopens its log files every second
|
|
||||||
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
|
|
||||||
then
|
|
||||||
mount --bind "${DRIVERDIR}/log" /var/log
|
|
||||||
fi
|
|
||||||
|
|
||||||
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
||||||
|
|
||||||
pidfile="/run/docker.pid"
|
pidfile="/run/docker.pid"
|
||||||
|
@ -11,5 +11,12 @@ start() {
|
|||||||
|
|
||||||
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
|
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
|
||||||
|
|
||||||
|
# shift logs onto host before docker starts
|
||||||
|
# busybox reopens its log files every second
|
||||||
|
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
|
||||||
|
then
|
||||||
|
mount --bind "${DRIVERDIR}/log" /var/log
|
||||||
|
fi
|
||||||
|
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user