首页 > 解决方案 > http2: server sent GOAWAY and closed the connection; LastStreamID=73, ErrCode=NO_ERROR, debug="" when pushing docker image to private Artifactory

问题描述

I have a Dockerfile which use Nuxeo as a base image. I can build the file successfully but whenever I tried to push it locally to the private Artifactory it keeps retrying to push some layers and then it stops to show this error:

8c02234b8605: Layer already exists 
EOF

if I tried to push it using an automated script (for example Jenkins) it takes to much time (around 15 minutes) after that I get this error:

http2: server sent GOAWAY and closed the connection; LastStreamID=73, ErrCode=NO_ERROR, debug=""

I think I'm getting these errors because of the image size, is there a way to speed up the pushing process or minimize the image size?

this is my Dockerfile:

FROM nuxeo:LTS-2019

USER user_dd
COPY ./nuxeo_studio/ /opt/nuxeo/server/nuxeo-packages/

CMD [ "nuxeoctl", "console" ]
USER 1000

标签: dockerdockerfilenuxeo

解决方案


问题终于解决了!

显然,这是因为构建图像时的缓存层。一些层需要被多次推送。所以这就是服务器发送 GOAWAY and closed the connection . 我在构建命令中添加了“--no-cash”选项,它起作用了!


推荐阅读