# Best Practices for Using ntop Tools on Containers | ntop

[Blog](https://www.ntop.org/blog/)[ntop](https://www.ntop.org/category/ntop/)

# Best Practices for Using ntop Tools on Containers

May 23, 20222 min read

Many people use software containers to simplify application deployment. As you know ntop tools are also available on [docker hub](https://packages.ntop.org) for quick deployment using Docker or other container management tools such as [Portainer](https://www.portainer.io) or [Kubernetes](https://kubernetes.io). When using containers, there are a few things to keep in mind:

-   Service Persistency  
    ntopng relies on third party services such as Redis (required) and InfluxDB (optional) to operate. In order not to loose information at container restart, you need to persistently store data or configure ntop tools to rely on such services on an external container that provide such services persistently.
-   Filesystem Persistency  
    ntopng data is usually stored on /var/lib/ntopng/ and this directory must be persistent across restarts. You can map it with -v to a local directory “docker run -it -v /var/lib/ntopng/:/var/lib/ntopng/:rw ntop/ntopng:stable -i eth0”  
    Note that if you use a local redis instance, you should also persists it (ntop keeps its configuration on redis) adding “-v /var/lib/redis/:/var/lib/redis/:rw” to the above command. If you forget that, ntopng settings will be lost across container restarts.

PF\_RING  
In containers the kernel is shared and thus PF\_RING must be loaded on the main host and accessed by containers. Please make sure that the PF\_RING version is the same across host and containers as otherwise when starting a container you will see errors such as

root@dell:/home/ntop# docker run -it ntop/ntopng:stable -v /etc/ntopng.license:/etc/ntopng.license:ro 
Starting redis-server: redis-server.
\[PF\_RING\] Wrong RING version: kernel is 20, libpfring was compiled with 18

when the kernel PF\_RING and the container application (using PF\_RING) are not the same version.

-   Packet Capture  
    Container network interfaces are unable to see the host traffic. If you plan to deploy ntop tools on a container and monitor the host traffic please consider using “ *–network=host” when starting the container.*
-   Licensing  
    The license from the host is shared across all the running containers (i.e. with 1 license you can run ‘n’ containers). In order to do that you need to map the license file as follows “*\-v /etc/nprobe.license:/etc/nprobe.license:ro”*

We hope this post will help you easilydeploying ntop tools on containers

Enjoy !

**Related:**[ntopng](https://www.ntop.org/products/traffic-analysis/ntopng/), [Network traffic analysis software](https://www.ntop.org/network-traffic-analysis-software/)

## Keep reading

centoMay 18, 2026

### [Post-Quantum Cryptography (PQC) Analysis](https://www.ntop.org/post-quantum-cryptography-pqc-analysis/)

Modern digital security relies on public-key encryption (like RSA and ECC) to protect global data. The future arrival of a Cryptographically Relevant Quantum Computer (CRQC) will completely break these mathematical foundations. To…

ntopJul 11, 2025

### [New, Fast, Scalable ClickHouse Integration for High-Volume Networks](https://www.ntop.org/new-fast-scalable-clickhouse-integration-for-high-volume-networks/)

When it comes to monitoring very large networks and the flows’ cardinality reaches into the billions, the performance of historical data storage and query systems becomes a critical bottleneck. Network operators, analysts,…

ntopJun 30, 2025

### [Network Visibility and Observability: ntopng vs SNMP+](https://www.ntop.org/network-visibility-and-observability-ntopng-vs-snmp/)

Recently, we’ve encountered users with high monitoring requirements. Some users need to monitor 1,000 routers and want to know who are the top talkers or top protocols. Others have a network with…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/best-practices-for-using-ntop-tools-on-containers/