mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 15:16:13 +02:00
Review zabbix user and group configuration
This commit is contained in:
parent
62aa810a87
commit
fe7c1440fd
@ -10,12 +10,16 @@ LABEL org.opencontainers.image.title="Zabbix agent 2" \
|
|||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
RUN set -eux && \
|
RUN set -eux && \
|
||||||
addgroup -S -g 1995 zabbix && \
|
addgroup --system --gid 1995 zabbix && \
|
||||||
adduser -S \
|
adduser --system \
|
||||||
-D -G zabbix -G root \
|
--gecos "Zabbix monitoring system" \
|
||||||
-u 1997 \
|
--disabled-password \
|
||||||
-h /var/lib/zabbix/ \
|
--uid 1997 \
|
||||||
|
--ingroup zabbix \
|
||||||
|
--shell /sbin/nologin \
|
||||||
|
--home /var/lib/zabbix/ \
|
||||||
zabbix && \
|
zabbix && \
|
||||||
|
adduser zabbix root && \
|
||||||
mkdir -p /etc/zabbix && \
|
mkdir -p /etc/zabbix && \
|
||||||
mkdir -p /etc/zabbix/zabbix_agentd.d && \
|
mkdir -p /etc/zabbix/zabbix_agentd.d && \
|
||||||
mkdir -p /var/lib/zabbix && \
|
mkdir -p /var/lib/zabbix && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user