Appearance
快速开始
使用 Docker Compose(推荐)
网络模式
必须使用 host 网络模式,ARP 等工具才能正常工作。 使用 host 模式后无需映射端口,直接访问宿主机 12376 端口。
yaml
services:
netdiagnose:
image: ccr.ccs.tencentyun.com/liumou/netdiagnose:latest
container_name: netdiagnose
network_mode: host
environment:
- TZ=Asia/Shanghai
- JWT_SECRET=change-this-to-a-secure-random-string
- DB_PATH=/data/netdiagnose.db
cap_add:
- NET_RAW
- NET_ADMIN
volumes:
- netdiagnose-data:/data
restart: unless-stopped
volumes:
netdiagnose-data:启动服务:
bash
docker compose up -d打开浏览器访问 http://宿主机IP:12376。
首次登录
- 打开
http://localhost:12376 - 使用默认凭据登录:
admin/admin123 - 建议登录后立即修改密码