Docker Load and Save: "Archive/Tar: Invalid Tar Header"

Docker: invalid tar header

Problem was solved by updating to docker 1.7 and redoing everything.

Docker ERROR: Error processing tar file(exit status 1): unexpected EOF

There is an built in command to remove unused images (Version 1.13+):

docker image prune

Now to handle the situation:

  • Stop Docker Service

    systemctl stop docker
  • Backup /var/lib/docker then:

  • Remove /var/lib/docker
    Caution: This will remove images, containers, volumes, ... make sure you back it up first.

    rm -rf /var/lib/docker
  • Start Docker service

    systemctl start docker  

Update:

As noted in the other answer, In somecases it might be file permissions issue. Please review permissions.

Docker build error, archive/tar: sockets not supported

It looks like your Dockerfile is probably in /home/shim/?

When you do docker build ., docker will tar up the contents of the current directory and send it to the docker daemon. It looks like some of the files in /home/shim/.ServiceHub are actually sockets, so this operation fails.

Best practice is to have the Dockerfile in its own, isolated, directory to avoid stuff like this.

Also, I suggest having a read through dockerfile_best-practices, in particular the bit about RUN & apt-get



Related Topics



Leave a reply



Submit