Docker container to run ZeroTier One using Docker.
Spawn the container in background:
docker run \
-d \
--restart unless-stopped \
--name zerotier-one \
--device /dev/net/tun \
--net host \
--cap-add NET_ADMIN \
--cap-add SYS_ADMIN \
-v /var/lib/zerotier-one:/var/lib/zerotier-one \
henrist/zerotier-one
Show status of the service:
docker exec zerotier-one zerotier-cli status
Join a specific network:
docker exec zerotier-one zerotier-cli join NETWORK-ID