我在 Virtual Box 上运行 Linux。我正尝试从我组织的私有存储库之一提取 LDAP 映像,即
http://161.85.19.106:8080/repo/ldap/tag/sig-markets-phoenix-customer-2.1.0
为了从注册表中提取该图像,我使用了以下命令:
sudo docker pull 161.85.19.106:8080/repo/ldap/:sig-markets-phoenix-customer-2.1.0
起初我收到以下错误
error response from daemon: Get https:/: http: server gave HTTP response to HTTPS client
我将 IP 地址和端口组合添加到我的daemon.json
。此外,我在代理后面工作,因此我从此位置注释掉代理解析并重新启动守护程序和 docker:
/etc/systemd/system/docker.service.d/http-proxy.conf
现在,当我尝试运行上述命令时出现以下错误:
Error response from daemon: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE html>\n<html>\n<head>\n <title>The page you were looking for doesn't exist (404)</title>\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <style>\n .rails-default-error-page {\n background-color: #EFEFEF;\n color: #2E2F30;\n text-align: center;\n font-family: arial, sans-serif;\n margin: 0;\n }\n\n .rails-default-error-page div.dialog {\n width: 95%;\n max-width: 33em;\n margin: 4em auto 0;\n }\n\n .rails-default-error-page div.dialog > div {\n border: 1px solid #CCC;\n border-right-color: #999;\n border-left-color: #999;\n border-bottom-color: #BBB;\n border-top: #B00100 solid 4px;\n border-top-left-radius: 9px;\n border-top-right-radius: 9px;\n background-color: white;\n padding: 7px 12% 0;\n box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n }\n\n .rails-default-error-page h1 {\n font-size: 100%;\n color: #730E15;\n line-height: 1.5em;\n }\n\n .rails-default-error-page div.dialog > p {\n margin: 0 0 1em;\n padding: 1em;\n background-color: #F7F7F7;\n border: 1px solid #CCC;\n border-right-color: #999;\n border-left-color: #999;\n border-bottom-color: #999;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n border-top-color: #DADADA;\n color: #666;\n box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n }\n </style>\n</head>\n\n<body class=\"rails-default-error-page\">\n <!-- This file lives in public/404.html -->\n <div class=\"dialog\">\n <div>\n <h1>The page you were looking for doesn't exist.</h1>\n <p>You may have mistyped the address or the page may have moved.</p>\n </div>\n <p>If you are the application owner check the logs for more information.</p>\n </div>\n</body>\n</html>\n"
我还执行了 Docker 注销,因为我认为它可能由于凭证不良而失败,但这没有帮助。
有什么想法可以让它工作吗?