Light image ? #87

Open
opened 2025-12-28 23:23:49 +01:00 by adam · 20 comments
Owner

Originally created by @rockandska on GitHub (Nov 6, 2020).

Hi,

Do you have plans to provide the ability to have a lightweight image containing only the terminal without X layer?

I'm looking for a way to test shell scripts on a native macos installation through docker but never found a project who provide this possibility.

Best regards,

Originally created by @rockandska on GitHub (Nov 6, 2020). Hi, Do you have plans to provide the ability to have a lightweight image containing only the terminal without X layer? I'm looking for a way to test shell scripts on a native macos installation through docker but never found a project who provide this possibility. Best regards,
adam added the enhancement label 2025-12-28 23:23:49 +01:00
Author
Owner

@sickcodes commented on GitHub (Nov 7, 2020):

The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc?

@sickcodes commented on GitHub (Nov 7, 2020): The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc?
Author
Owner

@sickcodes commented on GitHub (Nov 7, 2020):

If so, and you think it's a good idea, i can create another image

@sickcodes commented on GitHub (Nov 7, 2020): If so, and you think it's a good idea, i can create another image
Author
Owner

@L-U-C-K-Y commented on GitHub (Nov 8, 2020):

Just found this project, looks really interesting!

I would also be interested in a “light image” that I could use as a CI/CD machine to build apps.

Many thanks for your work and the great idea.

Edit: Saw a similar use-case is being tracked here: https://github.com/sickcodes/Docker-OSX/issues/83

@L-U-C-K-Y commented on GitHub (Nov 8, 2020): Just found this project, looks really interesting! I would also be interested in a “light image” that I could use as a CI/CD machine to build apps. Many thanks for your work and the great idea. Edit: Saw a similar use-case is being tracked here: https://github.com/sickcodes/Docker-OSX/issues/83
Author
Owner

@sickcodes commented on GitHub (Nov 9, 2020):

Unfortunately to run the OS you must accept the EULA.

After the EULA you can run docker commit and duplicate your custom image as many times as you like.

Then you can use that image as your CI/CD tool :)

@sickcodes commented on GitHub (Nov 9, 2020): Unfortunately to run the OS you must accept the EULA. After the EULA you can run docker commit and duplicate your custom image as many times as you like. Then you can use that image as your CI/CD tool :)
Author
Owner

@rockandska commented on GitHub (Nov 18, 2020):

The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc?

Did not try it yet.
When you say with limited capabilities, what are they ?
Long time ago I tried to build a minimal shell with tools from https://opensource.apple.com/ but I abandoned it and is the reason why I'm still looking for a way to test shell under macos in a convenient way.

@rockandska commented on GitHub (Nov 18, 2020): > The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc? Did not try it yet. When you say `with limited capabilities`, what are they ? Long time ago I tried to build a minimal shell with tools from https://opensource.apple.com/ but I abandoned it and is the reason why I'm still looking for a way to test shell under macos in a convenient way.
Author
Owner

@sickcodes commented on GitHub (Dec 4, 2020):

@rockandska Interesting, you can test the limited bash 3.0 shell inside the OSX recovery image in this project which might be able to do adapted to run a minimal environment.

@sickcodes commented on GitHub (Dec 4, 2020): @rockandska Interesting, you can test the limited bash 3.0 shell inside the OSX recovery image in this project which might be able to do adapted to run a minimal environment.
Author
Owner

@sickcodes commented on GitHub (Mar 13, 2021):

Working on this. Dropbear or something inside the recovery disk would be nice

@sickcodes commented on GitHub (Mar 13, 2021): Working on this. Dropbear or something inside the recovery disk would be nice
Author
Owner

@sickcodes commented on GitHub (Mar 18, 2021):

Working on slimming all images down currently.

Most importantly is an SSHable recovery image which is sub 1GB!

@sickcodes commented on GitHub (Mar 18, 2021): Working on slimming all images down currently. Most importantly is an SSHable recovery image which is sub 1GB!
Author
Owner

@sickcodes commented on GitHub (Mar 18, 2021):

Having MAJOR issues slimming APFS however on Big Sur.

@sickcodes commented on GitHub (Mar 18, 2021): Having MAJOR issues slimming APFS however on Big Sur.
Author
Owner

@rockandska commented on GitHub (Mar 18, 2021):

Thanks for the follow-up

@rockandska commented on GitHub (Mar 18, 2021): Thanks for the follow-up
Author
Owner

@weskerfoot commented on GitHub (Mar 19, 2021):

Having MAJOR issues slimming APFS however on Big Sur.

Is the issue that it doesn't properly support TRIM on VMs?

You can apparently run into a bug that causes it to boot really slowly https://forums.macrumors.com/threads/new-ssd-formatted-as-apfs-trim-always-slow-boot-and-performance.2237883/

@weskerfoot commented on GitHub (Mar 19, 2021): > Having MAJOR issues slimming APFS however on Big Sur. Is the issue that it doesn't properly support TRIM on VMs? You can apparently run into a bug that causes it to boot really slowly https://forums.macrumors.com/threads/new-ssd-formatted-as-apfs-trim-always-slow-boot-and-performance.2237883/
Author
Owner

@sickcodes commented on GitHub (Mar 19, 2021):

Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down?

@sickcodes commented on GitHub (Mar 19, 2021): Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down?
Author
Owner

@weskerfoot commented on GitHub (Mar 19, 2021):

Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down?

I haven't updated to big sur yet, will see if I have time to try it out next week

@weskerfoot commented on GitHub (Mar 19, 2021): > Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down? I haven't updated to big sur yet, will see if I have time to try it out next week
Author
Owner

@sickcodes commented on GitHub (Mar 19, 2021):

It's insane, APFS only and can't seem to shrink it. Might have to use non-qcow instead actually

@sickcodes commented on GitHub (Mar 19, 2021): It's insane, APFS only and can't seem to shrink it. Might have to use non-qcow instead actually
Author
Owner

@sickcodes commented on GitHub (Mar 19, 2021):

Lol

40gb

@sickcodes commented on GitHub (Mar 19, 2021): Lol ![40gb](https://user-images.githubusercontent.com/65906298/111845885-a453f080-88fd-11eb-90db-06d218985d3c.png)
Author
Owner

@weskerfoot commented on GitHub (Mar 20, 2021):

Wow, quality software Apple :(

On Fri., Mar. 19, 2021, 5:54 p.m. sickcodes, @.***>
wrote:

Lol

[image: 40gb]
https://user-images.githubusercontent.com/65906298/111845885-a453f080-88fd-11eb-90db-06d218985d3c.png


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sickcodes/Docker-OSX/issues/103#issuecomment-803155732,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4L35CNNKDEWECNS5XIULTEPB2HANCNFSM4TMVE7MA
.

@weskerfoot commented on GitHub (Mar 20, 2021): Wow, quality software Apple :( On Fri., Mar. 19, 2021, 5:54 p.m. sickcodes, ***@***.***> wrote: > Lol > > [image: 40gb] > <https://user-images.githubusercontent.com/65906298/111845885-a453f080-88fd-11eb-90db-06d218985d3c.png> > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/sickcodes/Docker-OSX/issues/103#issuecomment-803155732>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAC4L35CNNKDEWECNS5XIULTEPB2HANCNFSM4TMVE7MA> > . >
Author
Owner

@sickcodes commented on GitHub (Mar 21, 2021):

All good fixed it after installation in https://github.com/sickcodes/Docker-OSX/issues/210

@sickcodes commented on GitHub (Mar 21, 2021): All good fixed it after installation in https://github.com/sickcodes/Docker-OSX/issues/210
Author
Owner

@sickcodes commented on GitHub (Jul 8, 2021):

Some optimizations can be performed here to make your image smaller https://github.com/sickcodes/osx-optimizer

@sickcodes commented on GitHub (Jul 8, 2021): Some optimizations can be performed here to make your image smaller https://github.com/sickcodes/osx-optimizer
Author
Owner

@biemster commented on GitHub (Jun 7, 2022):

Working on slimming all images down currently.

Most importantly is an SSHable recovery image which is sub 1GB!

Do you have an update on the latter @sickcodes ? Would be extremely useful if it has AOSKit and can login to iCloud to research anisette data!

@biemster commented on GitHub (Jun 7, 2022): > Working on slimming all images down currently. > > Most importantly is an SSHable recovery image which is sub 1GB! Do you have an update on the latter @sickcodes ? Would be extremely useful if it has AOSKit and can login to iCloud to research anisette data!
Author
Owner

@rockandska commented on GitHub (Sep 16, 2025):

Hi @sickcodes

Any news about a shell only container to be able to run test on a linux laptop please ?
I'm pretty sure there's some interest in it.

Thanks,

@rockandska commented on GitHub (Sep 16, 2025): Hi @sickcodes Any news about a shell only container to be able to run test on a linux laptop please ? I'm pretty sure there's some interest in it. Thanks,
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#87