美文网首页
2024-01-18部署3 Harbor

2024-01-18部署3 Harbor

作者: 大也 | 来源:发表于2024-01-21 14:50 被阅读0次
image.png

https://github.com/goharbor/harbor/releases
harbor.yml.tmpl 去掉.tmpl

image.png
image.png
image.png

3.成功


image.png
image.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.


image.png

ERROR:root:Error: The protocol is https but attribute ssl_cert is not set

image.png
https://www.cnblogs.com/wxwgk/p/13287336.html
image.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.

image.png
image.png
image.png

启动


image.png

启动停止都需要进入对应目录
/Users/mac/harbor/harbor
docker compose -f docker-compose.yml up -d 启动 Harbor
docker compose -f docker-compose.yml stop 关闭 Harbor

image.png image.png

访问
http://172.80.0.24/
admin
a123456


image.png

docker添加安全访问权限

编辑/etc/docker/daemon.json文件

vim /etc/docker/daemon.json

添加安全访问权限

{
"insecure-registries":["http://172.80.0.19"]
}


image.png

重启Docker

image.png
https://blog.csdn.net/qq13933506749/article/details/118942185

相关文章

网友评论

      本文标题:2024-01-18部署3 Harbor

      本文链接:https://www.haomeiwen.com/subject/rjglodtx.html