mac中harbor的安装部署

目录

一 下载安装包online版(v2.8.0)

二 修改权限

三 解压、复制配置文件、修改配置文件

四 启动

五 访问

附:可能遇到的问题

1 目录问题:

2 已存在nginx冲突


一 下载安装包online版(v2.8.0)

Releases · goharbor/harbor · GitHubAn open source trusted cloud native registry project that stores, signs, and scans content. - Releases · goharbor/harborhttps://github.com/goharbor/harbor/releases?page=12#release-v2.8.0

二 修改权限

chmod 777 harbor-online-installer-v2.8.0.tgz

三 解压、复制配置文件、修改配置文件

tar -zxvf harbor-online-installer-v2.8.0.tgz     # 解压tgz包
cp harbor.yml.tmpl harbor.yml                    # 创建一个配置文件
vim harbor.yml                                   # 修改配置文件

四 启动

sh install.sh


 

等待下载完成

查看容器

五 访问

http://localhost

admin/Harbor12345

附:可能遇到的问题
1 挂载目录问题

What's next:
    Debug this container error with Gordon → docker ai "help me fix this container error"
docker: Error response from daemon: mounts denied:
The path /data is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/go/mac-file-sharing/ for more info.

修改挂载目录(默认的有权限问题)

# 编辑配置 vim harbor.yml

data_volume: /data

# 修改 data_volume:  /Users/harbor/data # 注意冒号后面有一个空格

重新执行 ./install.sh

2 已存在nginx冲突

✘ service... Error response from daemon: Conflict. The container name "/nginx" is already in use by container "6018fa6e5a2d3b93d9e015eef3201421af833496e583577dd13574a3aabf142e". You have to remove (or rename) that container to be able to reuse that name. 0.0s Error response from daemon: Conflict. The container name "/nginx" is already in use by container

重命名原来的nginx或删除即可。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值