mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +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"
|
||||
|
||||
# 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}"
|
||||
|
||||
pidfile="${DOCKER_PIDFILE:-/run/${RC_SVCNAME}.pid}"
|
||||
|
Loading…
Reference in New Issue
Block a user