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