mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
some logic to choose graph driver, not just go with aufs
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
77a5b0d032
commit
0261d732e4
@ -2,7 +2,18 @@
|
|||||||
|
|
||||||
export DOCKER_RAMDISK="true"
|
export DOCKER_RAMDISK="true"
|
||||||
|
|
||||||
DOCKER_OPTS="${DOCKER_OPTS:- -s aufs}"
|
# choose a graph driver based on what is available and a preference
|
||||||
|
# if the user has not set any opts
|
||||||
|
# we do not yet provide easy access to /etc/conf.d/docker but may do
|
||||||
|
# otherwise let Docker choose
|
||||||
|
if cat /proc/filesystems | grep -q '\taufs$'
|
||||||
|
then
|
||||||
|
DOCKER_OPTS="${DOCKER_OPTS:- -s aufs}"
|
||||||
|
else if cat /proc/filesystems | grep -q '\toverlay$'
|
||||||
|
then
|
||||||
|
DOCKER_OPTS="${DOCKER_OPTS:- -s overlay}"
|
||||||
|
fi
|
||||||
|
|
||||||
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
||||||
|
|
||||||
pidfile="${DOCKER_PIDFILE:-/run/${RC_SVCNAME}.pid}"
|
pidfile="${DOCKER_PIDFILE:-/run/${RC_SVCNAME}.pid}"
|
||||||
|
Loading…
Reference in New Issue
Block a user