mirror of
https://github.com/thelittlerocket/docker-zerotier.git
synced 2024-09-20 06:46:02 +08:00
files | ||
Dockerfile | ||
README.md |
Zerotier
Build
docker build -t my/zerotier .
Run
You have to load tun
module on docker host.
modprobe tun
... and you can start ZeroTier container with this command.
docker run -tid --name=zerotier --net=host --privileged my/zerotier /opt/start.sh
Usage
Create and Connect to network
- You have to register ZeroTier service on https://my.zerotier.com page.
- You have to create a network on the zerotier's page (You got a Network ID like: 565799d8f6bba354 )
- You have to join with the ZeroTier node
docker exec -ti zerotier zerotier-cli join 565799d8f6bba354