docker: update docker.conf

Fix the following error:
  dockerd[2525]: Flag --graph has been deprecated, Use --data-root instead
  dockerd[2525]: the "graph" config file option is deprecated; use "data-root" instead
  systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE

Fix the following warning:
  [graphdriver] trying configured driver: overlay2
  DEPRECATED: the overlay2.override_kernel_check option is ignored and will be removed
    in the next release. You can safely remove this option from your configuration.
This commit is contained in:
Rudi Heitbaum 2022-12-18 03:36:04 +00:00
parent 73751156bf
commit 1f6cdc8589
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Lukas Rusak (lrusak@libreelec.tv)
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
ADDON_DIR="/storage/.kodi/addons/service.system.docker"
ADDON_HOME_DIR="/storage/.kodi/userdata/addon_data/service.system.docker"
@ -12,6 +13,10 @@ fi
if [ ! -f "$ADDON_HOME_DIR/config/docker.conf" ]; then
cp $ADDON_DIR/config/docker.conf $ADDON_HOME_DIR/config/docker.conf
else
# previous deprecated options before v23.0.0 need to be updated
sed -i -e 's/--storage-opt overlay2.override_kernel_check=1//' \
-e 's/--graph=/--data-root=/' $ADDON_HOME_DIR/config/docker.conf
fi
if [ ! -d "$ADDON_HOME_DIR/docker" ]; then

View File

@ -1,2 +1,2 @@
DOCKER_DAEMON_OPTS="--data-root=/storage/.kodi/userdata/addon_data/service.system.docker/docker"
DOCKER_STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1"
DOCKER_STORAGE_OPTS="--storage-driver=overlay2"