Installation (Command Line Program)
This section only introduces installation methods.
Installation Methods
Manual Download of Command Line Program
bash./easytier-core --versionpowershell.\easytier-core.exe --versionDockerHub
sh# docker.io image docker pull easytier/easytier:latest docker run -d --privileged --network host easytier/easytier:latest # Domestic users can use DaoCloud image docker pull m.daocloud.io/docker.io/easytier/easytier:latest docker run -d --privileged --network host m.daocloud.io/docker.io/easytier/easytier:latestInstall via Docker Compose
docker-compose.yml
yamlservices: watchtower: # Used to automatically update easytier image, delete this part if not needed image: containrrr/watchtower container_name: watchtower restart: unless-stopped environment: - TZ=Asia/Shanghai - WATCHTOWER_NO_STARTUP_MESSAGE volumes: - /var/run/docker.sock:/var/run/docker.sock command: --interval 3600 --cleanup --label-enable easytier: image: easytier/easytier:latest # Domestic users can use m.daocloud.io/docker.io/easytier/easytier:latest hostname: easytier container_name: easytier labels: com.centurylinklabs.watchtower.enable: 'true' restart: unless-stopped network_mode: host cap_add: - NET_ADMIN - NET_RAW environment: - TZ=Asia/Shanghai devices: - /dev/net/tun:/dev/net/tun volumes: - /etc/easytier:/root - /etc/machine-id:/etc/machine-id:ro # Map host machine code command: -d --network-name <user> --network-secret <password> -p tcp://<your-public-ip>:11010One-Click Installation Script (Linux Only)
Note: The one-click script depends on
unzip, please download and install it in advance.bashwget -O /tmp/easytier.sh "https://raw.githubusercontent.com/EasyTier/EasyTier/main/script/install.sh" && sudo bash /tmp/easytier.sh install --gh-proxy https://ghfast.top/After the script executes successfully, EasyTier's binary programs will be installed in the
/opt/easytierdirectory, and the configuration file is located at/opt/easytier/config/default.conf.The configuration file can be generated through the Configuration File Generator.
EasyTier will be registered as a system service and can be managed with the following commands:
bashsystemctl start easytier@defaultInstall from Source
shcargo install --git https://github.com/EasyTier/EasyTier.git easytierSource installation requires Rust environment and LLVM installation.
