DaoCloud / crproxy

CRProxy (Container Registry Proxy) is a generic image proxy
MIT License
343 stars 89 forks source link

Error response from daemon: denied #8

Closed gtress closed 3 months ago

gtress commented 3 months ago

搭建完了 无法拉取镜像 直接报这个

wzshiming commented 3 months ago

请提供具体使用方法和复现步骤

yangtao278080785570121 commented 3 months ago

172.18.0.2 - - [13/Jun/2024:07:28:46 +0000] "GET /v2/ HTTP/1.0" 200 2 172.18.0.2 - - [13/Jun/2024:07:28:46 +0000] "HEAD /v2/coredns/coredns/manifests/latest HTTP/1.0" 403 86 172.18.0.2 - - [13/Jun/2024:07:28:46 +0000] "GET /v2/coredns/coredns/manifests/latest HTTP/1.0" 403 86

yangtao278080785570121 commented 3 months ago

[root@yzfs-file-228 ~]# docker pull docker.xxxxx.cn/coredns/coredns:latest Error response from daemon: denied

yangtao278080785570121 commented 3 months ago

请问这是什么原因

yangtao278080785570121 commented 3 months ago

[root@bw-xxx-plan2 default]# cat start.sh

!/usr/bin/env bash

docker-compose up -d

gateway=docker.xxxxx.cn

wzshiming commented 3 months ago

使用 docker pull docker.xxxxx.cn/docker.io/coredns/coredns:latest

wzshiming commented 3 months ago

默认只支持加前缀

wzshiming commented 3 months ago

请细看文档后半部分 https://github.com/wzshiming/crproxy/blob/master/examples/default/README.md

wzshiming commented 3 months ago

配置 其他源的别名

yangtao278080785570121 commented 3 months ago

可以了 好用了 docker.io没加导致的 感谢

slayercat commented 3 months ago

#11 可能能解决这个问题,敬请参阅、测试并提出意见。