参考https://github.com/hamlinzheng/docker-zerotier-server中的教程
git clone https://github.com/hamlinzheng/docker-zerotier-server.git
Ubuntu提示:
Command 'git' not found, but can be installed with:
apt install git
(安装git):
sudo apt update
apt install git
然后在执行:
git clone https://github.com/hamlinzheng/docker-zerotier-server.git
接下来安装 Docker 和 Docker-compose
先安装Docker:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
然后安装Docker-compose
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
查看docker-compose
版本
docker-compose version
评论 (0)