小编Boa*_*man的帖子

Docker 推送关系私有存储库失败,413 请求实体太大

我已经部署了一个 Nexus OSS 的本地实例,它是在 Nginx 反向代理后面到达的。

在任何将 docker 映像推送到在 Nexus 注册表上创建的存储库的尝试时,我413 Request Entity Too Large都在推送过程中遇到 了 。

nginx.conf 文件看起来像这样:

http {
    client_max_body_size 0;
    upstream nexus_docker {
        server nexus:1800;
    } 
    server {
        server_name nexus.services.loc;
        location / {
            proxy_pass http://nexus_docker/;
            proxy_set_header Host $http_post;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        } 
    } 
} 
Run Code Online (Sandbox Code Playgroud)

nginx 是使用 docker 部署的,我已经使用docker login. 我尝试了多个其他标志,例如 chunkin 等。但似乎没有任何效果。

nginx nexus docker

10
推荐指数
2
解决办法
4957
查看次数

标签 统计

docker ×1

nexus ×1

nginx ×1