Netlens
Get started
Netlens needs to see your network, so install it on a device that is connected to the network you want to scan: a NAS, a mini PC, a Raspberry Pi or a server. Not Docker Desktop on Mac or Windows.
Add the service
Paste it into your existing docker-compose.yml, or use the ready-made file or a Portainer stack.
Start it
docker compose up -d netlens, then open http://<this-device>:8080.
Create the administrator
The first visit asks for an administrator and confirms the networks to scan. Then the first scan starts.
Compose
Add this to your docker-compose.yml
It also needs a volume. Add netlens-data: under volumes: at the bottom of the same file.
netlens:
image: ghcr.io/gatlarf/netlens:latest
container_name: netlens
restart: unless-stopped
network_mode: host # required to see the devices on your network
cap_drop:
- ALL
cap_add:
- NET_RAW
- NET_ADMIN
read_only: true
tmpfs:
- /tmp
volumes:
- netlens-data:/data
environment:
- TZ=Europe/Brussels # your time zonevolumes:
netlens-data:The image is published for 64-bit Intel/AMD and 64-bit ARM at ghcr.io/gatlarf/netlens. No account is needed to pull it.
network_mode: host, and the cap_add list with NET_RAW and NET_ADMIN. They are settings of the Netlens container (the same indentation as image:), not of Netlens itself; without them the container starts but cannot scan, and the Scan log says A container setting is missing. In Portainer they are the Network and Capabilities tabs; on a Synology use a Project. Where exactly do they go?
Other ways
Pick your platform
Netlens has a demo mode with made-up data: set NETLENS_DEMO=on and nothing real is scanned or changed. How to run the demo.
Then what?
Walk through the setup guide in Netlens, then read the manual for the settings that matter.