From 904495797b9b0057e6307aea1cefb394f605c08e Mon Sep 17 00:00:00 2001 From: Maciej Lebiest <68295743+Szwendacz99@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:34:51 +0200 Subject: [PATCH] zabbix-agent run as root --- zabbix-agent/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix-agent/Dockerfile b/zabbix-agent/Dockerfile index be08d23..7846517 100644 --- a/zabbix-agent/Dockerfile +++ b/zabbix-agent/Dockerfile @@ -3,6 +3,7 @@ FROM docker.io/alpine:latest RUN apk add smartmontools util-linux zabbix-agent2 zabbix-utils sudo fping && \ echo 'zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl' >> /etc/sudoers -USER zabbix +# USER zabbix +USER root ENTRYPOINT [ "/usr/sbin/zabbix_agent2", "-f" ]