当前位置:   article > 正文

【failed to solve: ***: failed commit on ref “unknown-sha256:】_failed commit on ref "layer-sha256:4f4fb700ef54461

failed commit on ref "layer-sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb55
 => => transferring dockerfile: 310B                                                                                                                                                                                                              0.0s
 => [main internal] load .dockerignore                                                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                                                                   0.0s
 => ERROR [main internal] load metadata for docker.io/library/openjdk:8                                                                                                                                                                          63.5s
------
 > [main internal] load metadata for docker.io/library/openjdk:8:
------
failed to solve: openjdk:8: failed commit on ref "unknown-sha256:d2356681c2a98ae14bd256445e2ae19e15ac3da501a181dc70cd0bd91cb93411": "unknown-sha256:d2356681c2a98ae14bd256445e2ae19e15ac3da501a181dc70cd0bd91cb93411" failed size validation: 8054 != 7706: failed precondition

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

主要原因:
阿里镜像问题

"https://cr.console.aliyun.com",
  • 1

换掉阿里的镜像重下
vim /etc/docker/daemon.json

"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
 "https://mirror.ccs.tencentyun.com"
  • 1
  • 2
  • 3
  • 4

重启

sudo service docker restart
  • 1
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号