mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
fix: 🐛 使用本地网络
This commit is contained in:
parent
64a6a1ae3e
commit
62e6164c67
@ -12,4 +12,4 @@ docker build -t $imageName:latest .
|
|||||||
|
|
||||||
echo "启动服务"
|
echo "启动服务"
|
||||||
for i in $(lsof -i:9993 -t);do kill -2 $i;done
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user