runnig
$ docker save 1234567890ab > /tmp/my-image.tar
fails with Error response from daemon: file integrity checksum failed for "var/cache/apt/pkgcache.bin"
OS: Oracle Enterprise Linux 7.2
Docker: Docker version 1.9.1, build ab77bde/1.9.1
What could this be? It only happens on some (at least one) Docker image. No matter if the Image is used in a Container or not. THere are several images without this problem. It happens to the image even after removing the image (docker rmi) and rebuilding it from the Dockerfile. The same Dockerfile can be build and saved without problems on Ubuntu 16.04 or Oracle Linux 6.x
The image build son top of FROM ubuntu:trusty
update… turns out the file aufs/diff/cadabbfe5bdb4d82bc42fd2c4b461d340f77d97ef0fb70f187315acd773728e9/etc/yum.conf had been edited, i restored the file to pre-edit and got past this issue.
I had something similar. Mine was with “docker push”. I increased memory allocation for Docker engine in Docker settings > Advanced (Docker for Windows), which fixed the issue.
I used the command as follows docker save microsoft/iis:nanoserver -o c:/iis.tar
and the powershell is running as administrator and it is saved in the place I gave ,
but when I wrote the command with out the c:/ docker save microsoft/iis:nanoserver -o iis.tar
the file saved @ c:/windows/systes32