![](https://img.haomeiwen.com/i2673147/1990d7034eeebce7.png)
https://github.com/goharbor/harbor/releases
harbor.yml.tmpl 去掉.tmpl
![](https://img.haomeiwen.com/i2673147/ee52759147707e53.png)
![](https://img.haomeiwen.com/i2673147/4284e34ce88c2060.png)
![](https://img.haomeiwen.com/i2673147/ad9dad3d08b4acb3.png)
3.成功
![](https://img.haomeiwen.com/i2673147/9e41c45d69df0b7e.png)
![](https://img.haomeiwen.com/i2673147/570009fb2f57c779.png)
问题
Error response from daemon: Conflict. The container name "/redis" is already in use by container "6ea95f644d8168a787f02f8da7d8bf6dfd47749eb745c1566df4581f5ec661e6". You have to remove (or rename) that container to be able to reuse that name.
![](https://img.haomeiwen.com/i2673147/bc8dddd5ad55bdee.png)
ERROR:root:Error: The protocol is https but attribute ssl_cert is not set
![](https://img.haomeiwen.com/i2673147/53ad9b3c308f76a6.png)
https://www.cnblogs.com/wxwgk/p/13287336.html
![](https://img.haomeiwen.com/i2673147/e94e1bfe68ea9e91.png)
ERRO[0000] error waiting for container:
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/desktop/mac for more info.
![](https://img.haomeiwen.com/i2673147/3468d47db8f5148d.png)
![](https://img.haomeiwen.com/i2673147/b674ba1c2211b894.png)
![](https://img.haomeiwen.com/i2673147/20687bfdc723066e.png)
启动
![](https://img.haomeiwen.com/i2673147/0e03107bad4d2c4a.png)
启动停止都需要进入对应目录
/Users/mac/harbor/harbor
docker compose -f docker-compose.yml up -d 启动 Harbor
docker compose -f docker-compose.yml stop 关闭 Harbor
![](https://img.haomeiwen.com/i2673147/20c5e2357ca20828.png)
![](https://img.haomeiwen.com/i2673147/6e128f355ad6e80b.png)
访问
http://172.80.0.24/
admin
a123456
![](https://img.haomeiwen.com/i2673147/758148065d8ec2b4.png)
docker添加安全访问权限
编辑/etc/docker/daemon.json文件
vim /etc/docker/daemon.json
添加安全访问权限
{
"insecure-registries":["http://172.80.0.19"]
}
![](https://img.haomeiwen.com/i2673147/6b99bfb00f21ff9f.png)
重启Docker
![](https://img.haomeiwen.com/i2673147/a6b74152d2a9a540.png)
https://blog.csdn.net/qq13933506749/article/details/118942185
网友评论