Merge pull request #16 from rwv/patch-1

当使用 network host 时,无需端口映射
This commit is contained in:
Markxu 2022-04-20 16:31:12 +08:00 committed by GitHub
commit 9216f82bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,5 +14,5 @@ docker build --network host -t $imageName .
echo "启动服务"
for i in $(lsof -i:9993 -t);do kill -2 $i;done
docker run -d --network host --name $imageName -p 3443:3443 -p 9993:9993 -p 9993:9993/udp --restart unless-stopped $imageName
docker run -d --network host --name $imageName --restart unless-stopped $imageName
docker cp zerotier-planet:/app/bin/planet /opt/planet