docker运行zerotier

moonjerx
2022-12-16 / 0 评论 / 73 阅读 / 正在检测是否收录...

moon安装

docker run --name=11011-ztmoon --restart=always -d -p 11012:9993/udp -p 11011:3443 -v /volume1/docker/zerotier/ztmoon/ztncui:/opt/key-networks/ztncui/etc -v /volume1/docker/zerotier/ztmoon/zt1:/var/lib/zerotier-one --env-file ./denv keynetworks/ztncui
docker run --name=zeroui --restart=always -d -p 9993:9993/udp -p 14000:3443 -p 3180:3180 -v /allroot/dockerdata/zerotier-moon/ztncui:/opt/key-networks/ztncui/etc -v /allroot/dockerdata/zerotier-moon/zo:/var/lib/zerotier-one --env-file ./denv keynetworks/ztncui
docker run -d --restart=always \
    -p9993:9993/udp -p24000:3443 \
    -p3181:3180 -p3010:3000 \
    -v /home/$USER/dockerfile/zerotier/ztncui-moon/ztncui:/opt/key-networks/ztncui/etc \
    -v /home/$USER/dockerfile/zerotier/ztncui-moon/zt1:/var/lib/zerotier-one \
    -e HTTP_PORT=3000 \
    -e NODE_ENV="production" \
    -e HTTP_ALL_INTERFACES="yes" \
    -e ZTNCUI_PASSWD="zero.c0m!" \
    -e MYDOMAIN="ztmoon.moonjer.com" \
    -e MYADDR="120.25.3.175" \
    --name ztmoon \
    ztncui-moon:latest -4 120.25.3.175 -p 9995
docker run -d --restart=always \
    -p9995:9993/udp -p3443:3443 \
    -p3180:3180 -p3010:3000 \
    -v /home/$USER/dockerfile/zerotier/ztncui-moon/ztncui:/opt/key-networks/ztncui/etc \
    -v /home/$USER/dockerfile/zerotier/ztncui-moon/zt1:/var/lib/zerotier-one \
    -e HTTP_PORT=3000 \
    -e NODE_ENV="production" \
    -e HTTP_ALL_INTERFACES="yes" \
    -e ZTNCUI_PASSWD="zero1111" \
    -e MYDOMAIN="ztmoon.moonjer.com" \
    -e MYADDR="120.25.3.175" \
    --name ztmoon \
    ztncui-moon:latest -4 120.25.3.175 -p 9995

client安装

docker run -d  \
  --name ztclient \
  --restart=always \
  --device=/dev/net/tun \
  --net=host \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_ADMIN \
  -v /home/$USER/dockerfile/zerotier/ztclient/zt-one:/var/lib/zerotier-one zerotier/zerotier-synology:latest
0

评论 (0)

取消

您的IP: