Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no space left on device while installing a tar using docker

Tags:

docker

I was installing a docker based tar file on my Windows7-64bit system using Docker quickstart Terminal.

docker load -i some_docker_image.tar

The command did some processing silently and flash an output:

 Error response from daemon: Untar re-exec error: exit status 1: output:
 write /usr/include/c++/4.4.4/gnu/java/net/protocol/http/Handler.h: no space left on device

How to clean the partially installed tar package to cleanup hard-disk space that is unnecessarily occupied?

like image 838
amp Avatar asked Nov 30 '15 09:11

amp


People also ask

How do I free up space on my docker?

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.

What happens when docker runs out of memory?

By default, if an out-of-memory (OOM) error occurs, the kernel kills processes in a container.


1 Answers

Start by cleaning dangling images:

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

First, make sure all your containers are stopped and removed: check the state with a docker ps -a.

like image 122
VonC Avatar answered Sep 25 '22 05:09

VonC