gpt4 book ai didi

Docker镜像拉取错误无效字符

转载 作者:行者123 更新时间:2023-12-02 18:50:21 26 4
gpt4 key购买 nike

我正在尝试从 DTR 中拉取一个 docker 镜像,但出现以下错误

#docker pull repo/appname
Trying to pull repository repo/appname ...
Pulling repository repo/appname
**invalid character '<' looking for beginning of value**

我不确定哪里出了问题。我只是用谷歌搜索并在下面找到了与错误相关的链接,但没有帮助。

https://github.com/stripe/stripe-go/issues/642

最佳答案

先前的回答 suggested a network issue .

在您的情况下,关于访问 DTR (Docker Trusted Registry) , 这也可能是正确的问题。
例如,如果 docker login 需要访问该图像,将发送回 404 HTML 页面,并且 docker 命令不知道如何解释 HTML 答案(以 <!DOCTYPE html> 开头),因此无效字符' < ')

实际上,BMitch有帮助地指出in the comments DTR 将发回 json 消息,而不是 HTML:

This < is from something else intercepting the request before it gets to the registry API.

Something is capturing the request before it makes it to the registry API. Network proxy, or a reverse proxy within the container.
Either way the docker login shouldn't help.

I'd curl the registry url/port and see what is generating the error.

关于Docker镜像拉取错误无效字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63387922/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com