Rancher Server 设置
- Rancher 版本:V2.4.8
- 在线或离线部署:docker 一键安装
主机操作系统:
Centos7.9
问题描述:
在主机上使用docker login登录成功后可以拉取镜像。
但是通过Rancher后台部署服务选择镜像名字,提交后一直提示如下错误
ErrImagePull: rpc error: code = Unknown desc = Error response from daemon: Get https://ccr.ccs.tencentyun.com/v2/bilan/project/manifests/v1: unauthorized: authentication required
[/details]
zuxia
4
apiVersion: v1
data:
.dockerconfigjson: >-
eyJhdXRocyI6eyJkb2NrZXIueHguY29tIjp7InVzZXJuYW1lIjoieHgiLCJwYXNzd29yZCI6Inh4In19fQ==
kind: Secret
metadata:
creationTimestamp: ‘2025-02-08T07:11:02Z’
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
.: {}
f:.dockerconfigjson: {}
f:type: {}
manager: rancher
operation: Update
time: ‘2025-02-08T07:11:02Z’
name: docker
namespace: default
resourceVersion: ‘10080861’
uid:
type: kubernetes.io/dockerconfigjson
增加这几项吗?
name: docker
namespace: default
resourceVersion: ‘10080861’
uid:
type: kubernetes.io/dockerconfigjson
zuxia
8
我没使用你这个版本,但方法是这样的,你先配置一个Secret,然后你配置POD或者工作负载,拉取的时候,需要选上这个Secret