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
Find Files in Created Between a Date Range
Best Practices for Git Repositories on Open Source Projects
How to Shell Have More Than One Job in Linux
Bash Script to Calculate Time Elapsed
Find and Remove a Line in Multiple Files
How to Pipe or Redirect the Output of Curl -V
How to Setup the Passwords-Less Authentication Between Two Different Accounts
The Gnu Screen Is Unresponsive, Seems Blocked
Linux Script Extract Information from Excel to Create Users
How to Edit a Binary File on Unix Systems
How to Check If a Service That I Don't Know the Name of Is Running on Ubuntu
Comparing Two Unsorted Lists in Linux, Listing the Unique in the Second File
Add Up a Column of Numbers at the Unix Shell
Diff to Output Only the File Names
How to Append to a File Using X86-64 Linux System Calls
Grabbing Specific Sections of Text from a String
/Lib64/Ld-Linux-X86-64.So.2: No Such File or Directory Error