Docker Limit and Image Size

I read a lot about this problem here and on other websites, but I could not find the right solution on how to increase the image size limit, which is set to 10 GB by default.

A bit of background information.

I am creating a docker container: https://bitbucket.org/efestolab/docker-buildgaffer

Download and create a consistent set of libraries on top of the centos image. (takes an awful amount of time and space to build)

The problem is that every time I try to build it, I get this error:

No space left on device 

Version for dockers:

 Docker version 1.7.1, build 786b29d 

Docker Information:

 Containers: 1 Images: 76 Storage Driver: devicemapper Pool Name: docker-8:7-12845059-pool Pool Blocksize: 65.54 kB Backing Filesystem: extfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 11.28 GB Data Space Total: 107.4 GB Data Space Available: 96.1 GB Metadata Space Used: 10.51 MB Metadata Space Total: 2.147 GB Metadata Space Available: 2.137 GB Udev Sync Supported: false Deferred Removal Enabled: false Data loop file: /home/_varlibdockerfiles/devicemapper/devicemapper/data Metadata loop file: /home/_varlibdockerfiles/devicemapper/devicemapper/metadata Library Version: 1.02.82-git (2013-10-04) Execution Driver: native-0.2 Logging Driver: json-file Kernel Version: 3.15.9-031509-generic Operating System: Ubuntu 14.04.2 LTS CPUs: 8 Total Memory: 15.58 GiB Name: hdd-XPS-15-9530 ID: 2MEF:IYLS:MCN5:AR5O:6IXJ:3OB3:DGJE:ZC4N:YWFD:7AAB:EQ73:LKXQ Username: efesto Registry: https://index.docker.io/v1/ WARNING: No swap limit support 

After stopping the service and nuking the / var / lib / docker folder, I update when I run the docker script

 /lib/systemd/system/docker.service 

with these flags:

 ExecStart=/usr/bin/docker -d --storage-opt dm.basesize=20G --storage-opt dm.loopdatasize=256G -H fd:// $DOCKER_OPTS 

and restarted the docker service, but still does not work with the same error.

I also read that this could be due to the original image that I rely on (centos: 6), which may have been built with a 10 GB limit.

So, I will rebuild the centos6 image and used this as a base for mine, but I made the same mistake.

Does anyone have a reliable way to get me to fully create this docker image?

If there is any other information that might be helpful, just feel free to ask.

Thanks for any answer or suggestion! L.

.

+5
source share
2 answers

Thanks to the @ user2915097 test, I updated the kernel version 3.16.0, installed additional kernel components, and uninstalled and reinstalled dockers. the problem seems to be addressed by devicemapper, now without any changes to the docker command I get:

 Containers: 0 Images: 94 Storage Driver: aufs Root Dir: /home/_varlibdockerfiles/aufs Backing Filesystem: extfs Dirs: 94 Dirperm1 Supported: true Execution Driver: native-0.2 Logging Driver: json-file Kernel Version: 3.16.0-45-generic Operating System: Ubuntu 14.04.3 LTS CPUs: 8 Total Memory: 15.58 GiB Name: hdd-XPS-15-9530 ID: 2MEF:IYLS:MCN5:AR5O:6IXJ:3OB3:DGJE:ZC4N:YWFD:7AAB:EQ73:LKXQ Username: efesto Registry: https://index.docker.io/v1/ WARNING: No swap limit support 

and he finally creates images> 10 GB. L.

+1
source

after changing the launch docker daemon settings

 systemctl daemon-reload systemctl stop docker rm -rf /var/lib/docker * systemctl start docker 

This will delete all your images, make sure you save them before

eg docker save -o something.tar.gz image_name

and reload them after starting docker

eg docker load -i something.tar.gz

0
source

All Articles