Coder Social home page Coder Social logo

docker-zerotier's Introduction

docker-zerotier

GitHub Actions 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

docker-zerotier's People

Contributors

rwv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.