Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

rwv/docker-zerotier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

docker-zerotier

Note

Use zerotier/zerotier instead.

Docker Version Docker Hub Docker Image Size
🐳 A docker image to run ZeroTier.

Have a look at dockerized ZeroTier moon: rwv/zerotier-moon.

Table of Contents

Quickstart

Start a container

docker run --name zerotier -d --net=host --device=/dev/net/tun --restart=always -v ~/somewhere:/var/lib/zerotier-one --cap-add=NET_ADMIN --cap-add=SYS_ADMIN seedgou/zerotier

This will mount ~/somewhere to /var/lib/zerotier-one inside the container, allowing your ZeroTier to presist configuration.

Manage ZeroTier

docker exec zerotier zerotier-cli

Docker Compose

Compose file

docker-compose.yml example:

version: "3"

services:
  zerotier:
    image: seedgou/zerotier
    container_name: "zerotier"
    network_mode: "host"
    restart: always
    volumes:
      - ./config:/var/lib/zerotier-one
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
    devices:
      - "/dev/net/tun:/dev/net/tun"

This will mount ./config to /var/lib/zerotier-one inside the container, allowing your ZeroTier to presist configuration.

Manage ZeroTier

docker-compose exec zerotier zerotier-cli

Advanced usage

Multi-arch support

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

GitHub Container Registry

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