Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No space left on device when pulling an image

Tags:

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 
like image 505
max Avatar asked Jan 23 '17 19:01

max


People also ask

How do you free up space if a docker server is running out of space?

Prune containers A stopped container's writable layers still take up disk space. To clean this up, you can use the docker container prune command. By default, you are prompted to continue. To bypass the prompt, use the -f or --force flag.

How do I get rid of dangling docker images?

If we do not want to find dangling images and remove them one by one, we can use the docker image prune command. This command removes all dangling images. If we also want to remove unused images, we can use the -a flag. The command will return the list of image IDs that were removed and the space that was freed.

Can we clean overlay2?

You can clean what is unused but you should never remove data manually from /var/lib/docker/volumes and/or /var/lib/docker/overlay2. Manually deleting files under /var/lib/docker can result in data loss. Read the Docker command line reference before running any of these commands.

How to fix “no space left on device” error?

Here’s how to fix “No space left on device” on Mac by removing junk files: Go to “Finder.” Click on Go menu > Go to Folder. Write /Library/Caches in the dialog bar. Press “Go.” Delete the contents, but keep the folders.

How to fix Docker system error no space left on device?

You will need delete all containers that were stopped as well as all volumes and networks and that are not used by any container. It will also remove all dangling images. I was facing the same issue. But resolved this: By docker system df command, I checked image size it was showing 104 MB, so the error No space left on device.

Why does my iPhone say “no space left on device”?

There are few things more annoying than the “No space left on device” notification appearing on your screen. If you’re prone to app hoarding or have seven different folders containing pictures of your dog, you’re probably triggered the message before. Unnecessary files often lead to glitches and bugs, so storage maintenance is important.

How do I see how much space is left on device?

Running down the right hand side of the screen, it gives instant info at a glance. You forgot a little annoying detail… In the (real) case of “No space left on device”, you won’t be able to log or even start your system !!


1 Answers

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"

enter image description here

like image 149
Pezholio Avatar answered Oct 14 '22 02:10

Pezholio