docker1.4 version Devicemapper modify container hard disk size

Source: Internet
Author: User

After upgrading the latest Docker version (1.4.0), found that the container's hard disk space is only 10G, if you need to specify the initial hard disk size, the current practice is still rough, change the Docker daemon Start command, and then delete the existing mirror of the current machine, restart the Docker service, the command is as follows:

sudo service docker stop sudo rm -rf/var/lib/Docker   
(Note that this will remove all images from the current machine, be cautious)sudo
(Recommended modification/etc/default/DF -hfilesystem Size used Availuse% mountedon/dev /mapper/docker-4... 346aa1 20G 416M 19G 3/

Reference:

Http://stackoverflow.com/questions/24391660/limit-disk-size-and-bandwidth-of-a-docker-container

https://github.com/docker/docker/issues/9080

Https://github.com/snitm/docker/blob/master/daemon/graphdriver/devmapper/README.md

docker1.4 version Devicemapper modify container hard disk size

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.