centos7.6搭建Harbor私有仓库
作者:互联网
1.环境准备
(1).安装CentOS7.6系统
(2).安装Docker
yum install docker
service docker start
2.安装docker-compose
官方下载地址:https://github.com/docker/compose/releases
下载并拷贝到对应的位置
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
为docker-compose添加可执行权限
chmod +x /usr/local/bin/docker-compose
验证查看docker-compose版本
docker-compose --version
3.安装Harbor
Harbor支持在线和离线安装方式,这里,我们使用离线方式,先下载Harbor安装包:
官方下载地址:https://github.com/goharbor/harbor/releases
wget https://github-production-release-asset-2e65be.s3.amazonaws.com/50613991/456bbd00-4f2e-11ea-98ff-0e673c1c6893?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200225T012856Z&X-Amz-Expires=300&X-Amz-Signature=83459fc93778234dc6fece2c8f60bd94381d480f16a86789500f16fcfd687652&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dharbor-offline-installer-v1.10.1.tgz&response-content-type=application%2Foctet-stream
解压离线安装包
tar -zxvf harbor-offline-installer-v1.10.1.tgz
将其安装到/opt目录下
mv harbor /opt/ cd /opt
编辑配置文件harbor.yml
vim harbor.yml
hostname = 10.2.3.90 #修改harbor的启动ip harbor_admin_password = 123456 #修改harbor的admin用户的密码
cd /opt
标签:compose,Harbor,私有,Amz,harbor,docker,com,centos7.6 来源: https://www.cnblogs.com/Yongzhouunknown/p/12360209.html