The following methods are more rough, use carefully, I am the experimental environment.
Today I want to try Docker and find that almost all of the commands are not working. After investigation, it was found that the image of Docker and the Btrfs directory occupy most of the space. The image of Docker was removed first sudo rm /var/lib/docker/containers
. Next, delete the space that Btrfs occupies
#!/bin/bashfor i in ' sudo ls/var/lib/docker/btrfs/subvolumes ' do echo "Deleting $i" sudo btrfs subvolume Delete/ Var/lib/docker/btrfs/subvolumes/$idone
This is written in a shell script implementation. Because the Btrfs directory cannot be deleted directly, you must use the btrfs
command to delete it. Shell scripts are not explained and can be read by the shell.
But I now find that the docker rmi
command is not working, and the phenomenon is as follows. Why are REPOSITORY and TAG all the same? Oh, I don't know. But it docker run
can be run up, do it.
[Email protected]/etc/systemd/system $ docker imagesrepository TAG IMAGE ID CREATED VIRTUAL size< none> <none> d735006ad9c1 6 days ago 192.7 Mb[email protected]/etc/systemd/system $ ^c[ Email protected]/etc/systemd/system $ docker RMI D735006ad9c1error response from daemon:no such id:04c5d3b7b0656168630d 3BA35D8889BD0E9CAAFCAEB3004D2BFBC47E7C5D35D22014/12/22 05:14:26 error:failed To remove one or more images[email Protected]/etc/systemd/system $ docker RMI Ubuntu:14.04error response from daemon:no such IMAGE:UBUNTU:14.042014/12/22 05:17:51 error:failed to remove one or more images
December 18, 2014: CoreOS Server disk space is insufficient