1.安装、运行docker 这个就省略,之前文章中有的!
2.安装docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/dockercompose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose或者这个
curl -L https://get.daocloud.io/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose3.赋予对应权限
sudo chmod +x /usr/local/bin/docker-compose4.查看是否安装成功
docker-compose -version5.下载Harbor的压缩包 下载地址 6.解压安装
tar -xzf harbor-offline-installer-v2.0.1tg解压后得到harbor目录
7.修改harbor.ym配置文件
vi harbor.ym8.预启动
./prepare9.启动
./install.sh启动后会多这些容器
10访问测试