docker-zerotier-server's People
Forkers
yari55 loe-tao chen-sky zhengmz moliango shuajieqd 73ad willisworley xijuwater988 melvishnizdocker-zerotier-server's Issues
Linux join network script
This script should be called with two arguments:
./zt-install-and-join-network.sh <my.server.domain> <network_id>
You can use ip address instead of domain name
Or you can just hardcode your data right into script for easier distribution (lines 2 and 3)
#!/bin/bash
server_ip=$1
network_id=$2
if [ `whoami` != root ]; then echo "Run as root required, abort"; exit 1; fi
if ! [ -z "systemctl list-unit-files | grep zerotier-one" ]; then echo "Zerotier already installed, abort"; exit 1; fi
if [ -z $server_ip ]; then echo "Server ip not set, abort"; exit 1; fi
if [ -z $network_id ]; then echo "Network id not set, abort"; exit 1; fi
# get gpg keys
curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi
# get custom planet file
sudo wget http://$server_ip:4000/app/static/planet -O /var/lib/zerotier-one/planet
# restart daemon
sudo systemctl restart zerotier-one.service
# join network
sleep 10
sudo zerotier-cli join $network_id
TO DO,期待早日提上日程
Support IPv6
Support domain
How to change password of login
不能建立
1 error occurred:
* Status: The command '/bin/sh -c apk add --no-cache curl g++ && ip=curl https://ip.3322.net
&& addr=${ip}/9993 && identity=cat /var/lib/zerotier-one/identity.public
&& echo "**************************************************************************" && echo "addr: ${addr}" && echo "identity: ${identity}" && curl https://codeload.github.com/zerotier/ZeroTierOne/tar.gz/refs/tags/${ZEROTIER_VERSION} --output /tmp/ZeroTierOne.tar.gz && cd /tmp && tar fxz /tmp/ZeroTierOne.tar.gz && mv /tmp/ZeroTierOne-* /tmp/ZeroTierOne && cd /tmp/ZeroTierOne/attic/world/ && sed -i '/roots.push_back/d' ./mkworld.cpp && sed -i '/roots.back()/d' ./mkworld.cpp && sed -i '85i roots.push_back(World::Root());' ./mkworld.cpp && sed -i '86i roots.back().identity = Identity("'"$identity"'");' ./mkworld.cpp && sed -i '87i roots.back().stableEndpoints.push_back(InetAddress("'"$addr"'"));' ./mkworld.cpp && sh ./build.sh && ./mkworld && mv ./world.bin /var/lib/zerotier-one/planet && apk del curl g++ && rm -rf /var/cache/apk/* && rm -rf /root/.cache && rm -rf /tmp/*' returned a non-zero code: 2, Code: 2
能不能直接在dockhub发布
支持一下x86 和 arm server
Create A Network 502
缺少authtoken.secret文件,不能搭建成功
# docker logs zero-ui
node:internal/fs/utils:347
throw err;
^
Error: ENOENT: no such file or directory, open '/var/lib/zerotier-one/authtoken.secret'
at Object.openSync (node:fs:594:3)
at Object.readFileSync (node:fs:462:35)
at Object.<anonymous> (/app/backend/utils/controller-api.js:10:14)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/app/backend/utils/ping.js:1:13) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/var/lib/zerotier-one/authtoken.secret'
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.