当前位置: 首页 > article >正文

国产服务器KyLinV10操作系统部署harbor仓库时报错:open /etc/registry/passwd: permission denied

 原因:registry容器因为权限问题导致异常重启

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

Appending internal tls trust CA to ca-bundle ...

find: '/etc/harbor/ssl': No such file or directory

Internal tls trust CA appending is Done.

ls: /harbor_cust_cert: Permission denied

time="2024-02-07T04:07:18.071313545Z" level=info msg="debug server listening localhost:5001"

time="2024-02-07T04:07:18.07219485Z" level=info msg="using redis blob descriptor cache" go.version=go1.19.8 instance.id=ddd7db6e-e5ba-42de-8bc1-26655a607aea service=registry version=v2.8.0.m

panic: unable to configure authorization (htpasswd): open /etc/registry/passwd: permission denied

goroutine 1 [running]:

github.com/docker/distribution/registry/handlers.NewApp({0xa71940?, 0x4000483ef0?}, 0x4000101800)

    /go/src/github.com/docker/distribution/registry/handlers/app.go:317 +0x191c

github.com/docker/distribution/registry.NewRegistry({0xa71940?, 0x4000483470?}, 0x4000101800)

    /go/src/github.com/docker/distribution/registry/registry.go:161 +0x128

github.com/docker/distribution/registry.glob..func1(0x8?, {0x4000484730, 0x1, 0x1})

    /go/src/github.com/docker/distribution/registry/registry.go:119 +0x160

github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0xfd3f40, {0x40004846f0?, 0x2?, 0x2?})

    /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x3ac

github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0xfd40e0)

    /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0x98

解决方式:给予文件权限(harbor由uid gid 10000的用户启动)

1

#在harbor部署目录下找到common目录,在common同级别目录执行

chown -R 10000.10000 ./common


http://www.kler.cn/news/358966.html

相关文章:

  • 计算机视觉——人像的分割与无缝融合
  • ORACLE 19C安装 RAC报错
  • RPC通讯基础原理
  • 计算机毕业设计Python动漫视频分析可视化 动漫影视可视化 动漫情感分析 动漫爬虫 机器学习 深度学习 Tensorflow PyTorch LSTM模型
  • 每天一个数据分析题(五百零八)- 机器学习模型
  • PPT自动化:Python如何修改PPT文字和样式!
  • 基于Multisim的乒乓球游戏机设计与仿真
  • 【网络安全】缓存欺骗问题之查看个人资料接口
  • Vue.js 组件开发基本步骤
  • 好用的软件
  • C# 委托/事件
  • 架构设计笔记-17-通信系统架构设计理论及实践
  • 什么是“河西走廊”?
  • 基于Java+Springboot+Vue开发的鲜牛奶订购管理系统
  • docker如何建立本地私有仓库,并将docker镜像推到私有仓库
  • 置分辨率设置多显示器的时候提示, 某些设置由系统管理员进行管理
  • Spring Cloud --- Gateway自定义条件过滤器
  • unity的一个bug
  • 三元组表矩阵运算
  • 力扣56~60题