Jaganadh Gopinadhan
Jaganadh Gopinadhan

Reputation: 470

docker load no space left on device RHEL

I was trying to load a saved docker image using the command $docker load <ubuuntu_ds.tar .

The image was created in another machine and moved to this.

It throws an error saying no space left in device. There is close to 2T space in the Machine. Here is the full log of command. Any clue how to resolve the same.

sh-4.2$ docker load <ubuntu.tar
0a42ee6ceccb: Loading layer 
[==================================================>]  118.8MB/118.8MB
c2af38e6b250: Loading layer 
[==================================================>]  15.87kB/15.87kB
5e95929b2798: Loading layer 
[==================================================>]  14.85kB/14.85kB
2166dba7c95b: Loading layer 
[==================================================>]  5.632kB/5.632kB
bcff331e13e3: Loading layer 
[==================================================>]  3.072kB/3.072kB
e87037031374: Loading layer 
[==================================================>]  516.8MB/516.8MB
no space left on device

Upvotes: 2

Views: 3007

Answers (1)

D. Vinson
D. Vinson

Reputation: 1158

Run:

docker volume rm $(docker volume ls {{.ID}})

docker system prune

Also remove dangling images:

docker images -aq -f 'dangling=true' | xargs docker rmi

If none of that works try:

Edit conf file /etc/systemd/system/docker.service.d/docker.conf

[Service]
ExecStart= 
ExecStart=/usr/bin/dockerd --storage-opt dm.basesize=40GB --storage-opt dm.min_free_space=40%%

Restart Docker:

systemctl stop docker.service
systemctl daemon-reload
systemctl start docker.service

Upvotes: 2

Related Questions