Description
zerotier-docker packages ZeroTier One as a container image built on Alpine Linux. It is meant to run ZeroTier as a service on container-focused systems such as Fedora CoreOS, though it should work on any Linux host with Docker or Podman. ZeroTier needs to create network interfaces on the host, so the container runs with /dev/net/tun, host networking and the NET_ADMIN and SYS_ADMIN capabilities. The README gives a complete docker run command with those options. The ZeroTier state folder, /var/lib/zerotier-one, should be mounted as a volume, so the container keeps the same identity across restarts. You join a network with zerotier-cli inside the container, or by creating an empty file named after the network ID in the networks.d folder. The README also describes a router mode as a variation of the setup.…
Highlights
- ZeroTier One in a lightweight Alpine image
- Runs on Fedora CoreOS, Docker or Podman
- Keeps its identity in a mounted state folder
- Join networks with zerotier-cli or a config file
Ratings & Reviews
No ratings yet
Be the first to rate Zerotier Docker.
People also visit
Zerotier Docker FAQ
What is zerotier-docker?
A container image of ZeroTier One built on Alpine Linux, for running ZeroTier as a service in a container.
Why does the container need special options?
ZeroTier creates zt interfaces on the host, so the container needs /dev/net/tun, host networking, and the NET_ADMIN and SYS_ADMIN capabilities.
Why mount /var/lib/zerotier-one?
Without the mount, the container generates a new identity every time it starts. Mounting the folder keeps the same identity across restarts.
How do I join a network?
Run docker exec zerotier-one zerotier-cli join with the network ID, or create an empty file named with the network ID in /var/lib/zerotier-one/networks.d.
Which systems is it for?
Container-oriented distributions such as Fedora CoreOS, and any Linux system with Docker or Podman.
What are the best Zerotier Docker alternatives?
Popular alternatives to Zerotier Docker include Ztnet, Derper Docker and ZOT OCI Registry. See all Zerotier Docker alternatives

