linux/amd64
linux/arm64
linux/arm
linux/ppc64le
Replace /YOUR/HATH/DATA
/YOUR/HATH/DL
/YOUR/HATH/VNSTAT
YOUR_CLIENT_KEY
YOUR_PORT
with yours.
You can find your Client ID#
and Client Key
here
"$Client ID"-"$Client Key"
like this: 123456-ABCDEFGHIJKLMN1234OP
https://ehwiki.org/wiki/Technical_Issues#Ports
-
Pull image
docker pull ghcr.io/sakuyamaij/hathv:latest
中国大陆用户可使用Docker Proxy镜像加速
-
Run it
docker run -d --name hath -p YOUR_PORT:YOUR_PORT -v /YOUR/HATH/DATA:/hath/data -v /YOUR/HATH/DL:/hath/download -v /YOUR/HATH/VNSTAT:/var/lib/vnstat -e HatH_KEY=YOUR_CLIENT_KEY ghcr.io/sakuyamaij/hathv
-
Check vnstat statistics
docker exec -it hath vnstat -d
(Container Port) and (Host Port) should be identical,
or you could just switch to (Advanced View), and set (Network Type) to (Host).