December 18, 2014: CoreOS Server disk space is insufficient

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.