zerotier-moon:1.16.2 alpine镜像,支持amd64;arm64v8;arm32v7,部署自用zerotier公网节点
867
自用zerotier-moon节点镜像,基础系统为alpine,支持amd64;arm64v8;arm32v7系统。
使用前提条件:
项目地址:https://github.com/DoTheBetter/docker/tree/master/zerotier-moon
下面是可用于自定义安装的可用选项的完整列表。
| 变量名 | 是否必须 | 默认值 | 说明 |
|---|---|---|---|
TZ | 可选 | Asia/Shanghai | 设置时区 |
MOON_PORT | 可选 | 9993 | zerotier-moon使用端口 |
IPV4_ADDRESS | 必须 | 无 | moon主机的公网ipv4地址 |
IPV6_ADDRESS | 可选 | 无 | moon主机的公网ipv6地址 |
| 范围 | 描述 |
|---|---|
9993/udp | zerotier-moon使用端口默认值。如修改默认端口则为修改后的值 |
下面的目录用于配置,并且可以映射为持久存储。
| 目录 | 描述 |
|---|---|
/var/lib/zerotier-one | zerotier-one配置文件夹 |
本镜像在 docker hub,ghcr.io 及 aliyuncs同步推送,docker hub 不能使用时可使用其他仓库
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
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
Content type
Image
Digest
sha256:4be5bbdbb…
Size
22.7 MB
Last updated
4 months ago
docker pull dothebetter/zerotier-moon