docker - 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
解决方案
问题终于解决了!
显然,这是因为构建图像时的缓存层。一些层需要被多次推送。所以这就是服务器发送 GOAWAY and closed the connection
. 我在构建命令中添加了“--no-cash”选项,它起作用了!
推荐阅读
- docker-compose - “enablePrettyUrl”不适用于标准 docker-compose 配置
- javascript - 使用 mongoose.removeOne 后,Node JS throwing 在发送到客户端后无法设置标头
- html - 在列上设置相同的高度
- java - java.lang.IllegalStateException:应为 BEGIN_OBJECT,但在第 1 行第 7770 列路径 $.films[8].images.poster 处为 BEGIN_ARRAY
- javascript - 需要用回调比较两个数组并在Javascript中返回一个对象
- macos - 从具有特定命名选项卡目标的 osx 终端打开 chrome
- python - Python 中的分页(Beautifulsoup)
- python - Discord.py 机器人没有证书
- php - 使用正则表达式匹配日期和时间
- pyomo - pyomo mindtpy 示例程序在运行时对于二进制变量变得不可行