安装docker
离线安装docker-compose
-
选择下载docker-compose的linux最新版本:https://github.com/docker/compose/releases
-
将docker-compose文件上传到服务器,并移动到/use/local/bin,并改名为docker-compose
sodu mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
-
对文件添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
-
测试是否安装成功
sudo docker-compose -v
离线安装harbor
-
选择 harbor 离线包下载
-
修改配置文件 harbor.yml.tmp,域名端口改为服务器域名端口。注释https
-
sudo ./install
镜像推拉问题
docker配置文件:
vim /etc/docker/daemon.json
{
"registry-mirrors": [ "https://registry.docker-cn.com"],
"insecure-registries": [ "172.18.18.90:5000"]
}
重启docker
systemctl restart docker