Docker-OSX
Docker-OSX copied to clipboard
hints to reduce image size
i generated the image, accept terms, get into desktop, but until here the image size was already 35GB.
my plan was to generate an image to use it on ci-cd, but with this size it is not possible :confused: , do you have any hint I could try? i am advancing with this, maybe check the opencore I saw on other issue #83 but dont know if will be able to install xcode.app and xcodebuild, the tools required to compile.
great tool btw, at least works and is faster than a virtualbox machine
Try following these instructions and see how it goes https://github.com/sickcodes/Docker-OSX#how-to-reduce-the-size-of-the-image
I was able to get my image size down to 42 gb, which is less than the 70gb or so it was before, but if you delete enough things you could probably get it down to 20 gb or so.
You can compress the image and it will shrink significantly in size:
qemu-img convert -c -O qcow2 larger.img smaller.img
It does not affect runtime speeds.
In addition, you can disable Automatic Updates for the system itself. This prevents it blowing out to 40GB on first boot. Literally just discovered this and I am uploading a fixed sickcodes/docker-osx:auto
image as we speak.
You can compress the image and it will shrink significantly in size:
qemu-img convert -c -O qcow2 larger.img smaller.img
It does not affect runtime speeds.
In addition, you can disable Automatic Updates for the system itself. This prevents it blowing out to 40GB on first boot. Literally just discovered this and I am uploading a fixed
sickcodes/docker-osx:auto
image as we speak.
Excelent news, will try your image and see if I can get it working on CICD
Try following these instructions and see how it goes https://github.com/sickcodes/Docker-OSX#how-to-reduce-the-size-of-the-image
Could you share the instructions again? It's no longer on the page