Configure NNM in a Docker Container
Before You Begin
Install an instance of NNM in a Docker container.
Dockerfile
FROM centos:7
EXPOSE 8835
ADD /nnm-5.0.0-es7.x86_64.rpm /nnm-5.0.0-es7.x86_64.rpm
RUN rpm -i nnm-5.0.0-es7.x86_64.rpm;
ENV PATH /opt/nnm/bin:$PATH
CMD /opt/nnm/bin/nnm && /opt/nnm/bin/nnm-proxy
Steps
- Copy the text of the
Dockerfilesection above and paste them in a file namedDockerfile. - Copy the NNM
*.rpmand paste it in the directory where you pasted theDockerfile. -
In a Linux shell, run the
cdcommand to navigate to the directory that containsDockerfileand the NNM*.rpmand run the following command:docker build -t centos/nnm . -
Run the Docker container that contains NNM using the following command:
docker run --net=host -d -p 8835:8835 centos/nnmTip: If you need to interact with NNM from the shell, you can run the following command instead:
docker run --net=host -t -i -p 8835:8835 centos/nnm -
Navigate to
https://<IP address or hostname>:8835, which will display the NNM web front end to log in.Refer to the Configure NNM section of the NNM user guide for configuration instructions.
-
In step 5 of the Configure NNM instructions, configure the monitored network interfaces depending on your needs, outlined in the Monitored Interfaces section of this guide.