mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
Do not try to use aufs if kernel has no support
This happens with the Moby mainline kernel and in future when we drop aufs. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
7d0b569a29
commit
848ba2bb71
@ -94,7 +94,7 @@ start()
|
|||||||
if ! $(cat /etc/docker/daemon.json | jq -e '."storage-driver"' > /dev/null)
|
if ! $(cat /etc/docker/daemon.json | jq -e '."storage-driver"' > /dev/null)
|
||||||
then
|
then
|
||||||
STORAGE_DRIVER="overlay2"
|
STORAGE_DRIVER="overlay2"
|
||||||
[ -d /var/lib/docker/aufs ] && STORAGE_DRIVER="aufs"
|
[ -d /var/lib/docker/aufs ] && grep -q aufs /proc/filesystems && STORAGE_DRIVER="aufs"
|
||||||
DOCKER_OPTS="${DOCKER_OPTS} --storage-driver ${STORAGE_DRIVER}"
|
DOCKER_OPTS="${DOCKER_OPTS} --storage-driver ${STORAGE_DRIVER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user