ntopng on Docker
This is a Docker image to run a NTOPNG instance.
This Docker image is based on the offical Alpine image.
Table of Contents
- Install Docker
- How to use this image
- Next steps
- Important notes
- Update Docker image
- Advanced usage
- Technical details
To use this image you have to install Docker first.
You can get the trusted build from the Docker Hub registry:
docker pull thbe/ntopng
Alternatively, you may build the Docker image from the
source code on GitHub.
How to use this image
You can use two environment variables that will be recognized by the start script.
The first argument indicates that the NTOPNG should monitor the FRITZ box.
The second argument indicates what interface at the FRITZ box should be monitored.
The third argument is the password for the FRITZ box.
If this environment variable is set, the scripts inside the container will run in debug mode.
Start the NTOPNG instance
The instance can be started by the start script
wget https://raw.githubusercontent.com/thbe/docker-ntopng/master/start_ntopng.sh chmod 755 start_ntopng.sh ./start_ntopng.sh
If you want to monitor your FRITZ box you have to add the following paramter to the start script:
wget https://raw.githubusercontent.com/thbe/docker-ntopng/master/start_ntopng.sh chmod 755 start_ntopng.sh ./start_ntopng.sh "true" "lan" "secret"
Check server status
You can use the standard Docker commands to examine the status of the NTOPNG instance:
docker logs --tail 1000 --follow --timestamps ntopng
The next release of this Docker image should have a persistent NTOPNG configuration.
The username for the web server is
password unless you don't change the password with the environment
variable as described in the Environment variables
Update Docker image
Simply download the trusted build from the Docker Hub registry:
docker pull thbe/ntopng
Build from source code
You can build the image also from source. To do this you have to clone the
docker-ntopng repository from GitHub:
git clone https://github.com/thbe/docker-ntopng.git cd docker-ntopng docker build --rm --no-cache -t thbe/ntopng .
Bash shell inside container
If you need a shell inside the container you can run the following command:
docker exec -ti ntopng /bin/sh
- Alpine base image
- ntopng binary from official Alpine package repository
If you like to add functions or improve this Docker image, feel free to fork the repository and send me a merge request with the modification.