简体   繁体   中英

Error writing to output file - write (28: No space left on device)

How to resolve the error when I run the apt-get update command? I have more than 100 GB left on my mac device

 Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)

Commands that I executed to check the free space.

user:~/.docker$df -h
Filesystem      Size   Used  Avail Capacity iused               ifree %iused  Mounted on
/dev/disk1s1   233Gi   93Gi  136Gi    41% 1479561 9223372036853296246    0%   /
devfs          187Ki  187Ki    0Bi   100%     648                   0  100%   /dev
/dev/disk1s4   233Gi  4.0Gi  136Gi     3%       4 9223372036854775803    0%   /private/var/vm
map -hosts       0Bi    0Bi    0Bi   100%       0                   0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%       0                   0  100%   /home

user:~/.docker$cat daemon.json 
{
  "debug" : true,
  "experimental" : false
}

user:~/.docker$cat config.json 
{
  "credsStore" : "desktop",
  "auths" : {

  },
  "stackOrchestrator" : "swarm",
  "experimental" : "disabled"
}

I configured the local environment docker to reuse the docker daemon inside the minikube instance.

There were many docker images listed when I used docker images command

Removed all the docker images using docker rmi -f imageName

After removing all the docker images, I was able to get some space and the Debian issue is resolved

Show us your df -kh. Also check the space left where your docker installation has gone. The drive where your docker is installed. Also check if your volume is heavy. If so you can switch your docker volume data to another data root by setting data-root flag in daemon.json and perform systemctl reload daemon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM