zabbix-agent run as root
This commit is contained in:
parent
8bc59c8f72
commit
904495797b
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ FROM docker.io/alpine:latest
|
||||||
RUN apk add smartmontools util-linux zabbix-agent2 zabbix-utils sudo fping && \
|
RUN apk add smartmontools util-linux zabbix-agent2 zabbix-utils sudo fping && \
|
||||||
echo 'zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl' >> /etc/sudoers
|
echo 'zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl' >> /etc/sudoers
|
||||||
|
|
||||||
USER zabbix
|
# USER zabbix
|
||||||
|
USER root
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/sbin/zabbix_agent2", "-f" ]
|
ENTRYPOINT [ "/usr/sbin/zabbix_agent2", "-f" ]
|
||||||
|
|
Loading…
Reference in a new issue