There no offical docker image for zerotier.
This Dockerfile modified from https://github.com/zerotier/ZeroTierOne/blob/master/ext/installfiles/linux/zerotier-containerized/Dockerfile
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
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
# docker exec -it zerotier bash
# zerotier-cli join {your network id}
Content type
Image
Digest
Size
29.4 MB
Last updated
about 4 years ago
docker pull isayme/zerotier