zabbix-agent run as root

This commit is contained in:
Maciej Lebiest 2023-10-26 19:34:51 +02:00 committed by GitHub
parent 8bc59c8f72
commit 904495797b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]