推送到托管 Docker 存储库时 Sonatype Nexus 3 504 网关超时

Sonatype Nexus 3 504 Gateway Timeout when pushing to hosted Docker repository

在 Sonatype Nexus 3 上推送到托管 Docker 存储库时,我得到 504 GATEWAY_TIMEOUT。我正在尝试推送多 GB 层:

    451c9f0946ad: Image already exists
    97444a62d0da: Image already exists
    3acdb070c7f5: Image already exists
    78362681bd49: Image already exists
    5890a244c36a: Pushing [==================================================>] 2.403 GB
    Received unexpected HTTP status: 504 GATEWAY_TIMEOUT

大约4到4.5分钟后似乎出错了。我看不到调整 Nexus 端超时的方法。有什么想法吗?

您将从 Nexus 前面的反向代理 运行 而不是 Nexus 本身收到错误 504。服务器前面有 nginx 或 Apache 或类似的 运行 吗?如果是,请检查那里的配置。