Merge pull request #157 from justincormack/movemount

move log mount to hostsettings not docker startup
This commit is contained in:
Justin Cormack 2016-05-27 11:47:39 -07:00
commit 79409e4d00
2 changed files with 7 additions and 7 deletions

View File

@ -10,13 +10,6 @@ start()
{
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}"
pidfile="/run/docker.pid"

View File

@ -11,5 +11,12 @@ start() {
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
}