Using Docker 1.13.0 (9795) under Windows 10 Build 14393, I'm getting "no space left on device" when trying to run the latest python image (which would be 3.6):
> docker run -it python
Unable to find image 'python:latest' locally
latest: Pulling from library/python
5040bd298390: Pull complete
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
52f3db4b5710: Extracting [==================================================>] 129.8 MB/129.8 MB
45b2a7e03e44: Download complete
75ef15b2048b: Download complete
e41da2f0bac3: Download complete
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: failed to register layer: Error processing tar file(exit status
1): write /usr/share/doc/libfreetype6/reference/ft2-type1_tables.html: no space left on device.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
There's over 20 GB free on the hard drive, so I assume the problem is inside Docker's virtual machine. How do I access it to investigate disk usage and clean up if needed?
docker images and docker ps -a didn't identify anything large:
> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest f49eec89601e 2 days ago 129 MB
d4w/nsenter latest 9e4f13a0901e 4 months ago 83.8 kB
> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae1e7c7b11ed ubuntu "/bin/bash" 10 minutes ago Exited (0) 9 minutes ago quirky_rosalind
Pulling separately didn't help:
> docker pull python
Using default tag: latest
latest: Pulling from library/python
5040bd298390: Pull complete
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
52f3db4b5710: Extracting [==================================================>] 129.8 MB/129.8 MB
45b2a7e03e44: Download complete
75ef15b2048b: Download complete
e41da2f0bac3: Download complete
failed to register layer: Error processing tar file(exit status 1): write /usr/bin/g++-4.9: no space left on device
If you're using Docker Desktop on OSX (or similar), you can get around this by accessing the Preferences, increasing the base image size, and click "Apply and Restart"
you can use this command to see if you have hide images.
docker image ls -a
and if you want to remove all of them you can use this command :
docker rmi -f $(docker image ls -a -q)
you know sometimes images files are stored in hard disk and then it cause low capacity.
I encountered this error today.
docker prune, docker rmi ..., df -h , df -ih and so may good but the reason is docker devicemapper Base Device Size .
the docker info command give info about that.
I refer to this for a complete explanation.
however, these steps would solve the problem:
systemctl stop docker.service
dockerd --storage-opt dm.basesize=20G
(you should terminate the command with Ctrl+C)
service start docker