1Panel-dev / 1Panel

🔥 #1 Rated Web-based Linux Server Management Tool. / 现代化、开源的 Linux 服务器运维管理面板。
https://www.1panel.cn
GNU General Public License v3.0
23.1k stars 2.1k forks source link

[Bug] 私有容器仓库无法拉取容器镜像(阿里云) #7135

Closed skys-mission closed 5 days ago

skys-mission commented 5 days ago

Contact Information

微信:skys-mission

1Panel Version

v1.10.21-lts

Problem Description

  1. 首先我在一个v1.10.21-lts之前的版本(我不记得),配置了一个阿里云的私有容器镜像仓库,给出了一个报错(我未截图) 报错内容:stdout: stderr: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon...
  2. 之后我更新到了v1.10.21-lts版本
  3. 添加了这个仓库成功了,于是我开始拉取镜像
  4. 拉取镜像报错 拉取报错 报错内容:image pull failed!image “我的镜像” pull failed, err: Error response from daemon: Get "https://*****.cn-guangzhou.personal.cr.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  5. 我回到仓库页面,看到一个同步按钮,我点了一下,又回到1.的报错 仓库页报错 报错内容同1.:stdout: stderr: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get "https://************.cn-guangzhou.personal.cr.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) , stderr: exit status 1

其它 我不知道应该设置http/https阿里云那边的文档也没写于是我视图设置http,结果 选择http报错 仓库是正常的 正常

Steps to Reproduce

如描述所示

The expected correct result

No response

Related log output

No response

Additional Information

No response

skys-mission commented 5 days ago

我在机器上试了下,不能登录,可能不是1panel的问题[狗头]

wanghe-fit2cloud commented 5 days ago

刚测试了阿里云镜像仓库,添加和拉取镜像均正常,如图: image