• Stars
    star
    439
  • Rank 99,247 (Top 2 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿณ A docker image to create ZeroTier moon in one step.

docker-zerotier-moon

GitHub Actions Docker Version Docker Hub Docker Image Size
A docker image to create ZeroTier moon in one setp.

Have a look at dockerized ZeroTier: rwv/zerotier.

Table of Contents

Quickstart

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

Advanced usage

Manage ZeroTier

docker exec zerotier-moon zerotier-cli

Mount ZeroTier conf folder

docker run --name zerotier-moon -d -p 9993:9993/udp -v ~/somewhere:/var/lib/zerotier-one seedgou/zerotier-moon -4 1.2.3.4 

When creating a new container without mounting ZeroTier conf folder, a new moon id will be generated. This command will mount ~/somewhere to /var/lib/zerotier-one inside the container, allowing your ZeroTier moon to presist the same moon id. If you don't do this, when you start a new container, a new moon id will be generated.

IPv6 support

docker run --name zerotier-moon -d -p 9993:9993/udp seedgou/zerotier-moon -4 1.2.3.4 -6 2001:abcd:abcd::1

Replace 1.2.3.4, 2001:abcd:abcd::1 with your moon's IP. You can remove -4 option in pure IPv6 environment.

Custom port

docker run --name zerotier-moon -d -p 9994:9993/udp seedgou/zerotier-moon -4 1.2.3.4 -p 9994

Replace 9994 with your own custom port for ZeroTier moon.

Network privilege

If you encounter issue: ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory, please add --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device=/dev/net/tun args. Similar to this:

docker run --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device=/dev/net/tun --name zerotier-moon -d --restart always -p 9993:9993/udp seedgou/zerotier-moon -4 1.2.3.4

Solution provided by Jonnyan404's Fork. See Also Issue #1.

Multi-arch support

This image supports linux/386, linux/amd64, linux/ppc64le, linux/arm64, linux/arm/v7, linux/arm/v6, linux/s390x and linux/riscv64.

GitHub Container Registry

This image is also published on GitHub Container Registry: ghcr.io/rwv/zerotier-moon

More Repositories

1

chinese-dos-games

๐ŸŽฎ Chinese DOS games collections.
Python
8,544
star
2

lookscanned.io

๐Ÿ“š LookScanned.io - Make your PDFs look scanned
Vue
2,489
star
3

chinese-dos-games-web

๐ŸŒ Source code of https://dos.zczc.cz
JavaScript
1,082
star
4

flash-archive-project

โšก Good old days' Adobe Flash files. (Mainly focus on Chinese Flash files)
Python
170
star
5

AppStorify

๐ŸŽ An App to check whether a non-App Store app is in App Store.
Swift
67
star
6

docker-zerotier

๐Ÿณ A docker image to run ZeroTier.
Dockerfile
26
star
7

docker-telegram-mirror

๐Ÿณ A docker image to create telegram web mirror in one step.
Dockerfile
21
star
8

get-cloudflare-location

โ˜ A JavaScript function to get user's location based on Cloudflare /cdn-cgi/trace
TypeScript
13
star
9

Rising-KaKa

๐Ÿฆ๏ธ Rising KaKa ็‘žๆ˜Ÿๅฐ็‹ฎๅญๅกๅก
Python
12
star
10

caj2pdf-go

๐Ÿ“š A Go port for caj2pdf/caj2pdf
Go
10
star
11

taobao_crawler

A crawler for taobao
Python
6
star
12

chinese-xinhua-go

๐Ÿ“™ ไธญๅŽๆ–ฐๅŽๅญ—ๅ…ธๆ•ฐๆฎๅบ“ใ€‚ๅŒ…ๆ‹ฌๆญ‡ๅŽ่ฏญ๏ผŒๆˆ่ฏญ๏ผŒ่ฏ่ฏญ๏ผŒๆฑ‰ๅญ—ใ€‚
Go
6
star
13

ruffle-mirror

โšก This is an auto npm mirror for ruffle.
Python
3
star
14

ipfs-web3-storage-cloudflare-action

Publish site to IPFS via web3.storage and set dnslink on Cloudflare
Python
2
star
15

bcrypt-workers

๐Ÿ‘ท bcrypt API for Cloudflare Workers
TypeScript
1
star
16

rwv

README
1
star
17

iTMSTransporter-downloader

Download iTMSTransporter components manually.
Python
1
star
18

chinese-dos-games-walkthroughs

Walkthroughs for rwv/chinese-dos-games
1
star