fix: 🐛 使用本地网络

This commit is contained in:
xubiaolin 2022-02-19 13:07:13 +08:00
parent 64a6a1ae3e
commit 62e6164c67

View File

@ -12,4 +12,4 @@ docker build -t $imageName:latest .
echo "启动服务"
for i in $(lsof -i:9993 -t);do kill -2 $i;done
docker run -d --name $imageName -p 3443:3443 -p 9993:9993 -p 9993:9993/udp -v /opt/$imageName:/var/lib/zerotier-one --restart unless-stopped $imageName:latest
docker run -d --network host --name $imageName -p 3443:3443 -p 9993:9993 -p 9993:9993/udp -v /opt/$imageName:/var/lib/zerotier-one --restart unless-stopped $imageName:latest