Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
/ zerotier_docker Public archive

zerotier,zerotier-moon,ztncui-zh in one Docker-container

License

Notifications You must be signed in to change notification settings

niliovo/zerotier_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

此仓库不再维护,请前往新项目zerotier-aio-zh

# zerotier_moon_ztncui_docker

- 中文 - ENGLISH

- Github - Docker Hub

# 本项目基于下列项目,将 zerotier,zerotier-moon,ztncui中文版 集成到一个docker镜像

- zerotier - docker-zerotier-moon - ztncui-aio - ztncui-zh

## Docker-Cli使用指南

bash~~ ~~docker run -itd --name zerotier --hostname zerotier --net host --restart always --cap-add ALL --device /dev/net/tun:/dev/net/tun -v /your_path/zerotier/zerotier-one:/var/lib/zerotier-one -v /your_path/zerotier/etc:/opt/key-networks/ztncui/etc -e TZ=Asia/Shanghai -e IPV4=0.0.0.0 -e IPV6=::1 -e ZTNCUI_ADMIN=admin -e ZTNCUI_PASSWD=password -e HTTP_ALL_INTERFACES=yes -e HTTP_PORT=9994 niliaerith/zerotier:latest~~ ~~

## Docker Compose使用指南

compose.yml~~ ~~ zerotier:~~ ~~ image: niliaerith/zerotier:latest~~ ~~ container_name: zerotier~~ ~~ hostname: zerotier~~ ~~ restart: zerotier~~ ~~ network_mode: host~~ ~~ restart: always~~ ~~ cap_add:~~ ~~ # - ALL~~ ~~ - NET_ADMIN~~ ~~ # - SYS_ADMIN~~ ~~ # - NET_BIND_SERVICE~~ ~~ devices:~~ ~~ - /dev/net/tun:/dev/net/tun~~ ~~ volumes:~~ ~~ - /your_path/zerotier/zerotier-one:/var/lib/zerotier-one~~ ~~ - /your_path/zerotier/etc:/opt/key-networks/ztncui/etc~~ ~~ environment:~~ ~~ - TZ=Asia/Shanghai~~ ~~ - MOON_PORT=9993~~ ~~ - IPV4=0.0.0.0~~ ~~ - IPV6=::1~~ ~~ - ZTNCUI_ADMIN=admin~~ ~~ - ZTNCUI_PASSWD=password~~ ~~ - HTTP_ALL_INTERFACES=yes~~ ~~ - HTTP_PORT=9994~~ ~~

## 变量

> 必须变量 ~~- cap_add: ~~ - - - NET_ADMIN- ALL 选择其中一个,让zerotier获取网络管理权

> 可选变量 - cap_add: - - - SYS_ADMINNET_BIND_SERVICE 可有可无 - devices: - - - /dev/net/tun:/dev/net/tun 启用tun模块 - volumes: - - - /your_path/zerotier/zerotier-one:/var/lib/zerotier-one 为映射 zerotier 目录,moon 信息储存在这里 - - - /your_path/zerotier/etc:/opt/key-networks/ztncui/etc 为映射 ztncui 目录, 用户名和密码信息储存在这里 - environment: - - - TZ=Asia/Shanghai 是时区选项,默认为 UTC时间 - - MOON_PORT=9993zerotier moon 占用端口,默认为 9993 - - - IPV4=0.0.0.0ipv4 地址, 默认为 0.0.0.0 - - - IPV6=::1ipv6 地址, 默认为 ::1 - - - ZTNCUI_ADMIN=admin 是管理员名称,默认为 admin - - - ZTNCUI_PASSWD=password 是管理员密码,默认为 password - - - HTTP_ALL_INTERFACES=yes 为是否启用绑定到所有网络,默认为 yes - - - HTTP_PORT=9994ztncui 管理界面端口

## 支持平台

- amd64

# 感谢

- GitHub - Docker Hub - zerotier - docker-zerotier-moon - ztncui-aio - ztncui-zh - Github文件加速 - 中科大源