Docker image for darkstat tool multi architecture
50K+
Darkstat - https://unix4lyfe.org/darkstat/
Before it was didierc/rpi-darkstat
Running on the latest debian stable slim for amd64, armv6, armV7 and arm64 with darkstat from git repository on the master branch.
docker pull didierc/docker-darkstat
docker run -d --net="host" --name=<container name> -v <local path to store db/log>:/darkstat/config -v /etc/localtime:/etc/localtime:ro -e OPTIONS=<options for darkstat> -e DS_UID=<uid> -e DS_GID=<gid> didierc/docker-darkstat
By default the user darkstat is created in the container and used by darkstat. And darkstat is launched in no deamon and with the chroot "/darkstat/config" to save log and database with the volume.
http://<host ip>:[PORT]
docker run -d --net="host" --name=darkstat -v /mylocal/directory/fordata:/darkstat/config -v /etc/localtime:/etc/localtime:ro -e OPTIONS="-i eth0 --daylog darkstat.log --verbose --import darkstat.db --export darkstat.db" didierc/docker-darkstat
See the documentation of darkstat to enable the exportation the database
Get the PID of darkstat process
pc >$ docker top <container id>

Send a SIGUSR1 or SIGUSR2 to the darkstat process
pc >$ kill -10 13080
Code available on Gitlab
The image is build with docker buildx
docker buildx create --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --use
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --push -t didierc/docker-darkstat:latest .
Content type
Image
Digest
sha256:e0e56e9db…
Size
29.3 MB
Last updated
3 months ago
docker pull didierc/docker-darkstat