harbor镜像仓库安装操作流程
一、下载地址https://github.com/goharbor/harbor/releases/tag/v2.7.0
二、下载的文件上传到服务器
三、解压文件
tar zxf harbor-offline-installer-v2.7.0.tgz
四、设置配置文件
cd harbor
cp harbor.yml.tmpl harbor.yml
五、安装
./install.sh
六、设置开机启动
vim /etc/rc.local
docker-compose -f /harbor安装的位置/docker-compose.yml up -d
七、设置权限
chmod +x /etc/rc.local /etc/rc.d/rc.local
八、尝试登陆harbor新建项目
九、我以nginx为例进行推送到harbor上docker tag nginx:latest 192.168.227.170:8050/test/nginx1.8:v1
docker push 192.168.227.170:8050/test/nginx1.8:v1
十、常见的问题
1.docker版本太低
Need to upgrade docker package to 17.06.0+.
2.升级docker版本
rpm -qa | grep docker
3.卸载对应docker软件
yum remove 卸载软件第2不查出来的
4.使用curl升级到最新版
curl -fsSL https://get.docker.com/ | sh
5.重启
systemctl restart docker
2.docker错误unauthorized: unauthorized to access repository的可能原因
sudo docker login 地址 -u 用户名
密码
3.无法推送仓库Harbor:Http: server gave HTTP response to HTTPS client & Get
vim /etc/docker/daemon.json
{
"insecure-registries":["IP地址:端口"]
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。