hints to reduce image size #93

Open
opened 2025-12-29 05:22:00 +01:00 by adam · 5 comments
Owner

Originally created by @carlosen14 on GitHub (Dec 16, 2020).

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 😕 , 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

Originally created by @carlosen14 on GitHub (Dec 16, 2020). 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
adam added the enhancement label 2025-12-29 05:22:00 +01:00
Author
Owner

@weskerfoot commented on GitHub (Dec 18, 2020):

Try following these instructions and see how it goes https://github.com/sickcodes/Docker-OSX#how-to-reduce-the-size-of-the-image

@weskerfoot commented on GitHub (Dec 18, 2020): Try following these instructions and see how it goes https://github.com/sickcodes/Docker-OSX#how-to-reduce-the-size-of-the-image
Author
Owner

@weskerfoot commented on GitHub (Dec 18, 2020):

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.

@weskerfoot commented on GitHub (Dec 18, 2020): 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.
Author
Owner

@sickcodes commented on GitHub (Feb 22, 2021):

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.

@sickcodes commented on GitHub (Feb 22, 2021): 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.
Author
Owner

@carlosen14 commented on GitHub (Feb 22, 2021):

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

@carlosen14 commented on GitHub (Feb 22, 2021): > 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
Author
Owner

@ju-li commented on GitHub (Sep 27, 2022):

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

@ju-li commented on GitHub (Sep 27, 2022): > 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX-sickcodes#93