I started a VM from this image https://atlas.hashicorp.com/bento/boxes/centos-6.7, which is only about 2-300MB in size. I then installed a few packages (java, node, docker etc.) in order to create a faster starting image for my app.
I then run yum clean all
and vagrant package --output newimage.box
, but the newimage.box
is ~3GB in size.
I've been looking around for a way to compact/ reduce the size of this image, but didn't find a lot. I found some mention of zerofree
, but have been unable to install it on the CentOS box.
Any suggestions/ advice here would be really appreciated.