Sign inSign up

dothebetter/zerotier-moon

By dothebetter

Updated 4 months ago

zerotier-moon:1.16.2 alpine镜像,支持amd64;arm64v8;arm32v7,部署自用zerotier公网节点

Image
0

867

dothebetter/zerotier-moon repository overview

简介:

Static Badge GitHub repo size GitHub Actions Workflow Status
Static Badge Static Badge Docker Image Version Docker Image Size Docker Pulls

自用zerotier-moon节点镜像,基础系统为alpine,支持amd64;arm64v8;arm32v7系统。

使用前提条件:

  1. docker宿主机必须开启TUN/TAP
  2. docker宿主机必须有IPv4或IPv6公网地址

项目地址:https://github.com/DoTheBetter/docker/tree/master/zerotier-moon

官网地址

相关参数:

环境变量

下面是可用于自定义安装的可用选项的完整列表。

变量名是否必须默认值说明
TZ可选Asia/Shanghai设置时区
MOON_PORT可选9993zerotier-moon使用端口
IPV4_ADDRESS必须moon主机的公网ipv4地址
IPV6_ADDRESS可选moon主机的公网ipv6地址
开放的端口
范围描述
9993/udpzerotier-moon使用端口默认值。如修改默认端口则为修改后的值
数据卷

下面的目录用于配置,并且可以映射为持久存储。

目录描述
/var/lib/zerotier-onezerotier-one配置文件夹

部署方法:

本镜像在 docker hub,ghcr.io 及 aliyuncs同步推送,docker hub 不能使用时可使用其他仓库

Docker Run
docker run -d \
	--name zerotier-moon \
	--restart always \
	--cap-add NET_ADMIN \
	--cap-add SYS_ADMIN \
	--device /dev/net/tun \
	-e IPV4_ADDRESS=1.2.3.4 \ #moon主机的公网ipv4地址
	-p 9993:9993/udp \
	-v /docker/zerotier-moon:/var/lib/zerotier-one \
	dothebetter/zerotier-moon:latest
	#ghcr.io/dothebetter/zerotier-moon:latest
	#registry.cn-hangzhou.aliyuncs.com/dothebetter/zerotier-moon:latest
docker-compose.yml
version: '3'
services:
  zerotier-moon:
    image: dothebetter/zerotier-moon:latest
	#ghcr.io/dothebetter/zerotier-moon:latest
	#registry.cn-hangzhou.aliyuncs.com/dothebetter/zerotier-moon:latest
    container_name: zerotier-moon
    restart: always
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
    devices:
      - /dev/net/tun
    environment:
      - IPV4_ADDRESS=1.2.3.4 #moon主机的公网ipv4地址
    ports:
      - "9993:9993/udp"
    volumes:
      - /docker/zerotier-moon:/var/lib/zerotier-one

更新日志:

详见 CHANGELOG.md

Tag summary

Content type

Image

Digest

sha256:4be5bbdbb

Size

22.7 MB

Last updated

4 months ago

docker pull dothebetter/zerotier-moon