Skip to content

Docker Deployment

Casey Reid edited this page Dec 15, 2023 · 4 revisions

Purpose

Since navi downloads very sensitive data it might be to your advantage to use a docker container that destroys after you're finished; limiting any unintentional exposure to sensitive data. Secondarily, docker makes for an easy way to support automation.

Download and Configure navi in a Docker Container

docker pull packetchaos/navi:latest

docker run -it -p 8000:8000 packetchaos/navi:latest /bin/bash 

navi keys

navi update full

Detach from Container

CTR+Q+P - CTR+Q+P

Attach to Container

docker attach <container id>

<press enter>

Configure Docker Container For Reporting

Navi has a few reporting capabilities where a CSV is the output. To extract this data from the container you will need to launch the container with port 8000 exposed and use the 'http' command to extract the reports.

docker run -it -p 8000:8000 packetchaos/navi:latest /bin/bash

Mount the navi.db to the local host

docker run -it -p 8000:8000 --mount type=bind,source="$(pwd)",target=/usr/src/app packetchaos/navi /bin/bash

Extract Data from the Docker Container - Deprecated after 6.10.7

To extract data from the container you need to run an http server. Use the below built in command.

navi http

Update

  • The "navi http" command was removed in version 7.0.0 and beyond. To extract data please use the below command instead

    python3 -m http.server