This repository has been archived by the owner on Jul 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Reduce image size produced by machine_image
resource
#26
Comments
marc-
changed the title
Reduce image size produce by
Reduce image size produced by Mar 5, 2015
machine_mage
resourcemachine_mage
resource
marc-
changed the title
Reduce image size produced by
Reduce image size produced by Mar 5, 2015
machine_mage
resourcemachine_image
resource
Closed
With d06c253 base image size reduced from 411.3 MB to 243.7 MB. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I found that docker image created by
machine_image
resource has too many redundant layers in it.Please note
911920e7729f
andd18b21b38ae7
. Ideally, I believe, it has to be merged into single layer (85d60acf156b
). It is also important to allow completely remove chef-client from image to save ~200Mb.So far the only workaround here is to reimport image with
docker export <conainer_id> | sudo docker import - <my_compact_image_name>
. Thoug, I personaly don't like this approach because it also wipes out underlying layers of base image (for instance, ubuntu image).The text was updated successfully, but these errors were encountered: