macOS in Docker Container
Docker-OSX allows users to run macOS in Docker containers, supporting multiple versions and offering features for security research and iMessage testing. It requires a KVM-capable host and provides community support.
Read original articleDocker-OSX is a project that enables users to run macOS in Docker containers, providing near-native performance. It is particularly useful for security research, iMessage testing, and iPhone USB functionality. The project supports multiple macOS versions, including Catalina, Big Sur, Monterey, Ventura, and Sonoma. Key features include the ability to conduct security research on macOS, support for iMessage, and USB passthrough for iPhone testing. Users can access various Docker images tailored for different macOS versions and configurations.
To get started, users need a KVM-capable host with virtualization enabled in the BIOS. The project offers quick start instructions and example commands for running macOS versions via Docker. Images are readily available on Docker Hub for easy access. The community around Docker-OSX is active, with support channels on Discord and Telegram, and the project encourages contributions and suggestions from users.
Additional resources include video tutorials for setup and comprehensive documentation for troubleshooting and advanced configurations. An example command for running macOS Catalina is provided, showcasing the necessary Docker parameters. For further details and specific use cases, users can refer to the Docker-OSX GitHub repository.
Related
Podman Desktop 1.11: Light mode, Kubernetes features, macOS improvements
Podman Desktop 1.11 introduces light mode, Rosetta support for Apple Silicon, Kubernetes enhancements, improved UI, and manifest support. Users can toggle light mode, achieve faster AMD64 builds on Apple Silicon, and benefit from upgraded features.
Developing Inside a Container
The Visual Studio Code Dev Containers extension allows developers to create a development environment within a container, ensuring consistent tool access and runtime stacks. Users need Docker installed and can enhance functionalities with extensions like Remote Development.
Linuxserver Container Image Collection
The LinuxServer repository offers various Docker images for applications like AdGuardHome-Sync, Jellyfin, Nextcloud, and more. It includes details on versions, popularity metrics, and deprecated applications like Jackett.
Taking command of the Context Menu in macOS
The blog post outlines methods for processing video and audio files on macOS using command line tools and applications like ContextMenu and Automator, including ffmpeg for re-encoding media files.
Show HN: Browser Based RDP and SSH
Apache Guacamole is a clientless remote desktop gateway. This guide details its installation and configuration using Docker on Linux, covering prerequisites, Docker installation, and accessing the web interface.
- Users discuss the technical limitations of GPU acceleration and virtualization, particularly on AMD hardware.
- There are concerns about the legality of redistributing macOS images and potential violations of Apple's EULA.
- Some users express interest in using Docker-OSX for specific applications like iCloud sync and Xcode.
- Discussion includes the potential for running macOS on M1 Macs and the implications of future macOS versions without Intel support.
- Community engagement is highlighted, with mentions of support channels like Discord and Telegram for user inquiries.
Besides the obvious build failures on heavily sandboxed build servers with no access to the internet, this forces anyone with even a little concern for security to do a full audit of any build recipes before using them, as merely studying and making available the dependencies listed in READMEs and build manifests like requirements.txt, package.json etc., is no longer enough.
I find this a very worrying development, especially given the rise in critical computer infrastructure failures and supply chain attacks we've seen lately.
Apple Silicon build of MacOS probably not going to be emulatable any time soon, though there is some early work in booting ARM darwin
Also Intel VT-x is missing on AMD, so virtualization is busted on AMD hosts although some crazy hacks with old versions of virtualbox can make docker kind of work through emulation
Docker-OSX: Run macOS VM in a Docker - https://news.ycombinator.com/item?id=34374710 - Jan 2023 (110 comments)
macOS in QEMU in Docker - https://news.ycombinator.com/item?id=23419101 - June 2020 (186 comments)
Worked really great otherwise, though. Very useful in a pinch.
This could be pretty awesome in terms of freedom, even if the build takes 5x more.
Also wanna point out the existence of OSX-PROXMOX, which does something similar for Proxmox home servers: https://github.com/luchina-gabriel/OSX-PROXMOX
I’ve personally been using the latter on my HP Z420 Xeon; it’s very stable, especially with GPU passthrough.
Can I run docker inside this container to get MacOS to run inside MacOS? ;)
This is really nice WRT the ease of installation: no manual setup steps and all.
This likely expressly violates the [macOS EULA], which says: «you are granted a limited, non-exclusive license to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer at any one time» — because the point is to run it not on a Mac. So, pull it and keep it around; expect a C&D letter come any moment.
[macOS EULA]: https://www.apple.com/legal/sla/docs/macOSMonterey.pdf (Other versions contain the same language.)
Edit: it actually does!
https://darwin-containers.github.io/
This parent project is VMs of OSX with a docker interface, I think.
Darwin containers are runc reimplemented in terms of MacOS chroot, so you do some isolation on native macs in a docker style.
Self-host in the repo glibc to emphasize the temporariness of this patch
sickcodes committed Feb 12, 2021
Seriously though, this is great.No forum eh? Everyone should come to the live channels and ask the same questions again :)
Related
Podman Desktop 1.11: Light mode, Kubernetes features, macOS improvements
Podman Desktop 1.11 introduces light mode, Rosetta support for Apple Silicon, Kubernetes enhancements, improved UI, and manifest support. Users can toggle light mode, achieve faster AMD64 builds on Apple Silicon, and benefit from upgraded features.
Developing Inside a Container
The Visual Studio Code Dev Containers extension allows developers to create a development environment within a container, ensuring consistent tool access and runtime stacks. Users need Docker installed and can enhance functionalities with extensions like Remote Development.
Linuxserver Container Image Collection
The LinuxServer repository offers various Docker images for applications like AdGuardHome-Sync, Jellyfin, Nextcloud, and more. It includes details on versions, popularity metrics, and deprecated applications like Jackett.
Taking command of the Context Menu in macOS
The blog post outlines methods for processing video and audio files on macOS using command line tools and applications like ContextMenu and Automator, including ffmpeg for re-encoding media files.
Show HN: Browser Based RDP and SSH
Apache Guacamole is a clientless remote desktop gateway. This guide details its installation and configuration using Docker on Linux, covering prerequisites, Docker installation, and accessing the web interface.