isayme/zerotier

By isayme

Updated about 4 years ago

Image
2

1.9K

isayme/zerotier repository overview

Deprecated: Use Official Image https://hub.docker.com/r/zerotier/zerotier

Docker for Zerotier

Docker Image Version (latest semver) Docker Image Size (latest semver)

There no offical docker image for zerotier.

This Dockerfile modified from https://github.com/zerotier/ZeroTierOne/blob/master/ext/installfiles/linux/zerotier-containerized/Dockerfile

How to use

Docker cli

docker run \
  --name=zerotier \
  --device=/dev/net/tun \
  --net=host \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_ADMIN \
  -d -v /var/lib/zerotier-one:/var/lib/zerotier-one \
  --restart unless-stopped \
  isayme/zerotier

Docker Compose

version: '3'

services:
  zerotier:
    container_name: zerotier
    image: isayme/zerotier
    restart: unless-stopped
    network_mode: host
    devices:
      - /dev/net/tun:/dev/net/tun
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
    volumes:
      - /var/lib/zerotier-one:/var/lib/zerotier-one

Join Network

# docker exec -it zerotier bash
# zerotier-cli join {your network id}

Tag summary

Content type

Image

Digest

Size

29.4 MB

Last updated

about 4 years ago

docker pull isayme/zerotier