Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.11 KB

File metadata and controls

31 lines (21 loc) · 1.11 KB

NFDump Docker image

These commands assume the current working directory is the root of the nfdump repository

To build and run the nfcapd target (runs nfcapd by default):

docker build -t nfcapd --target nfcapd -f extra/docker/Dockerfile .
# Create a docker volume so as not to run into permissions issues with non-root user
docker volume create flows
docker run -it --rm --name=nfcapd -p 9995:9995/udp -v flows:/data nfcapd

Desired nfcapd arguments can be appended to the docker run command above.

To build the nfdump target (drops you into an interactive shell by default):

docker build -t nfdump --target nfdump -f extra/docker/Dockerfile .
# Create a docker volume so as not to run into permissions issues with non-root user
docker volume create flows
docker run -it --rm --name=nfdump -v flows:/data nfdump

Desired nfdump arguments can be appended to the docker run command above.

For reference, there is also an Ubuntu Dockerfile at extra/docker/Dockerfile.ubuntu with similar nfcapd and nfdump targets.

Attribution

Contributed by heywoodlh.