使用docker搭建moon节点
#内网穿透zerotier#
Start a container
docker run --name zerotier-moon -d --restart always -p 9993:9993/udp -v ~/somewhere:/var/lib/zerotier-one seedgou/zerotier-moon -4 1.2.3.4
Replace 1.2.3.4
with your moon's IPv4 address and replace ~/somewhere
with where you would like to store your configuration.
Show ZeroTier moon id
docker logs zerotier-moon
Docker Compose
Compose file
docker-compose.yml
example:
version: "3"
services:
zerotier-moon:
image: seedgou/zerotier-moon
container_name: "zerotier-moon"
restart: always
ports:
- "9993:9993/udp"
volumes:
- ./config:/var/lib/zerotier-one
entrypoint:
- /startup.sh
- "-4"
- 1.2.3.4
Replace 1.2.3.4
with your moon's IPv4 address.
Show ZeroTier moon id
docker-compose logs
注意
- moon节点服务器,防火墙需开启 9993/udp 端口;
参考:https://hub.docker.com/r/seedgou/zerotier-moon
标签:1.2,节点,3.4,zerotier,9993,moon,docker From: https://www.cnblogs.com/anhaoyang/p/use-docker-to-build-a-moon-node-z1nsbqt.html