docker导入镜像报错:invalid diffID for layer xxx: expected “sha256:xxx“, got “sha256:xxx“(文件被更改过)

Posted Dontla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker导入镜像报错:invalid diffID for layer xxx: expected “sha256:xxx“, got “sha256:xxx“(文件被更改过)相关的知识,希望对你有一定的参考价值。

参考文章:Invalid diffID error on loading docker image

[root@ubuntu /home/yg/H7 HEOP]4# docker image load -i ./heop_devel_kit_ipc_h7_5.6.100_220216.tar
cd81a32dcfbe: Loading layer [==================================================>]  3.072kB/3.072kB
9b7f8b1dc5e0: Loading layer [==================================================>]   2.56kB/2.56kB
0f581c8de732: Loading layer [==================================================>]  3.584kB/3.584kB
e95474353eaa: Loading layer [==================================================>]  3.584kB/3.584kB
1625358b75c6: Loading layer [==================================================>]  47.62kB/47.62kB
7afaa60327ae: Loading layer [==================================================>]  1.035GB/1.035GB
934159fd5772: Loading layer [==================================================>]  6.656kB/6.656kB
928eaeef6a37: Loading layer [==================================================>]  17.76MB/17.76MB
708f4eb3ed40: Loading layer [==================================================>]  3.072kB/3.072kB
45099a8f6e49: Loading layer [==================================================>]  78.63MB/78.63MB
ecf92df61eb4: Loading layer [==================================================>]  3.072kB/3.072kB
fb8f6179a2b3: Loading layer [==================================================>]  1.163GB/1.163GB
134a140d5e37: Loading layer [==================================================>]  3.072kB/3.072kB
38914caab381: Loading layer [==================================================>]  3.072kB/3.072kB
043141d2d0d2: Loading layer [==================================================>]  4.016GB/4.016GB
invalid diffID for layer 25: expected "sha256:043141d2d0d22c2da59f0fad61cc01f3f165d3c321cc6ddb4168884f8bd693d2", got "sha256:5d661145651fc50b619ed8babeb5408d55a2c820e1eb9561da3b88f4f4bd7433"

貌似是我用idm多次更新链接下载的时候改变了文件的数据,导致导入镜像的时候文件校验不正确了。。。

以上是关于docker导入镜像报错:invalid diffID for layer xxx: expected “sha256:xxx“, got “sha256:xxx“(文件被更改过)的主要内容,如果未能解决你的问题,请参考以下文章

containerd导入本地镜像的一个小坑

Docker load 大镜像(17G) 报错no space left on device

处理 eclipse 导入报错 Invalid project description,问题

29-Docker-常用命令详解-docker history/diff

29-Docker-常用命令详解-docker history/diff

Eclipse导入Android工程报错 Invalid project description(转载)