From 1045ebebd0067c643ce1082bcdfe9b9086ddd970 Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 26 Jul 2023 09:44:30 +0200 Subject: [PATCH] note on protection mode --- README.md | 4 ++++ rootfs/etc/cont-init.d/require_unprotected.sh | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 rootfs/etc/cont-init.d/require_unprotected.sh diff --git a/README.md b/README.md index 1fe96fb..6424f52 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,7 @@ This addon enables a zabbix agent2 for the hassio instance. You obviously need a zabbix server for it to be meaningful. + +## Docker access + +If you need the agent to access the underlying docker, you need to disable the "Protection mode" switch and restart the container. diff --git a/rootfs/etc/cont-init.d/require_unprotected.sh b/rootfs/etc/cont-init.d/require_unprotected.sh new file mode 100644 index 0000000..0c20393 --- /dev/null +++ b/rootfs/etc/cont-init.d/require_unprotected.sh @@ -0,0 +1,6 @@ +#!/usr/bin/with-contenv bashio + +# Instead of enforcing this requirement, we let the user choose +# to access docker, we need to disable "protection mode" + +#bashio::require.unprotected \ No newline at end of file