Hi from what I see running the container with -e NAGIOS_UID=567 does not change the UID of the nagios user within the container. Running like this the container nagios user is always 1000 as it is set in the Dockerfile.
We have IT issues where we need to match the UID of nagios with a non-container version. Can this only be done by building a new image or did I miss something obvious?
Thanks in advance.
Docker Snippet Below.
FROM ubuntu:16.04
MAINTAINER Jason Rivers <jason@jasonrivers.co.uk>
ENV NAGIOS_HOME /opt/nagios
ENV NAGIOS_USER nagios
ENV NAGIOS_UID 1000
ENV NAGIOS_GROUP nagios
So I ended up adding my own script which is basically a copy of start_nagios and doing a usermod in there. Just double-checking that I didn't miss something.
Hi from what I see running the container with -e NAGIOS_UID=567 does not change the UID of the nagios user within the container. Running like this the container nagios user is always 1000 as it is set in the Dockerfile.
We have IT issues where we need to match the UID of nagios with a non-container version. Can this only be done by building a new image or did I miss something obvious?
Thanks in advance.
Docker Snippet Below.