Docker image size
I pull a Docker image of about 0.5 GB in size on the Docker Hub. After pulling it on my Centos machine the size of the image became 1.6 GB. Pushing the image with a new name show 2 GB on the Docker hub.
How can I obtain an image with the same size on the Docker hub?
One Solution collect form web for “Docker image size”
A similar issue was reported in issue 14204, for docker 1.7.0 on Ubuntu.
(And by default, CentOS might not have the latest version of docker, so the first step would be to upgrade if possible)
The questions to check were:
- How did you install docker?
- Can you provide the list the steps to reproduce the issue?
- Can you post the output from sudo du -sh /var/lib/docker/*
- You are using devicemapper as a storage driver, can you try using aufs?
For the last point, as described in this article, check
# Use DOCKER_OPTS to modify the daemon startup options. DOCKER_OPTS="--storage-driver=devicemapper"
As the OP Dragomir Adrian confirms in the comments, it is a docker version issue: upgrading to 1.9.1 helps.