公告

京东爆品,商家漏洞等,拼手速,手慢无! [点击收藏]

附:其它薅羊毛利器:
1,外卖红包:每天领取88元[点击收藏],反复可领。
2,车主加油打折服务:一键导航到加油站,选择油枪,支付时直减 [点击收藏]
3,电影票购买返利,覆盖所有主流院线。 [点击收藏]
4,打车-滴滴优惠
[点击收藏]
5,源头好货厂家直供[点击收藏]
6,POS机具(财务公司渠道版)[免费领取]

#1 2023-06-03 20:29:00

小天天
Moderator
注册时间: 2019-09-29
帖子: 891

crictl 401 Unauthorized

问题

[root@k8s-master3 ~]# crictl  pull harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0
E0603 20:24:13.438864    5917 remote_image.go:238] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0\": failed to resolve reference \"harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0\": pulling from host harbor.axxx.org.cn failed with status code [manifests 1.7.0]: 401 Unauthorized" image="harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0"
FATA[0000] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0": failed to resolve reference "harbor.axxx.org.cn/k8s/nginx-ingress-controller:1.7.0": pulling from host harbor.axxx.org.cn failed with status code [manifests 1.7.0]: 401 Unauthorized



需要/etc/containerd/config.toml配置账密:


[plugins]
  [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
    runtime_type = "io.containerd.runc.v2"
    [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
      SystemdCgroup = true
  [plugins."io.containerd.grpc.v1.cri"]
    sandbox_image = "harbor.axxx.org.cn/k8s/pause:3.8"
    [plugins."io.containerd.grpc.v1.cri".cni]
      bin_dir = "/opt/cni/bin"
      conf_dir = "/etc/cni/net.d"
      max_conf_num = 1
      conf_template = ""
    [plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.auths]

      [plugins."io.containerd.grpc.v1.cri".registry.configs]
        [plugins."io.containerd.grpc.v1.cri".registry.configs."harbor.axxx.org.cn".tls]
          insecure_skip_verify = true
        [plugins."io.containerd.grpc.v1.cri".registry.configs."harbor.axxx.org.cn".auth]
          username = "admin"
          password = "Harbor12345"

      [plugins."io.containerd.grpc.v1.cri".registry.headers]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]

离线

页脚

Powered by 华新企财帮

京ICP备19031397号-1