赞
踩
=> => 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
主要原因:
阿里镜像问题
"https://cr.console.aliyun.com",
换掉阿里的镜像重下
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"
重启
sudo service docker restart
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。