gpt4 book ai didi

docker-registry - Docker 推送错误 "413 Request Entity Too Large"

转载 作者:行者123 更新时间:2023-12-04 00:30:19 26 4
gpt4 key购买 nike

我设置了 registry v2并使用 nginx作为反向代理。当我将图像推送到注册表时,它会出错 413 Request Entity Too Large .

我已将 nginx.conf 中的 client_max_body_size 修改为 20MB。推送仍然失败。

client_max_body_size 20M;

docker push 中的主体尺寸是多少?如何限制车身尺寸?

最佳答案

Docker 文档 mentions应该关闭限制:

http {
...
# disable any limits to avoid HTTP 413 for large image uploads
client_max_body_size 0;
...
}

关于docker-registry - Docker 推送错误 "413 Request Entity Too Large",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35122918/

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