3.5 KiB
macOS and Linux virtual machines in a Docker container.
What is Lumier?
Lumier is an interface for running macOS virtual machines with minimal setup. It uses Docker as a packaging system to deliver a pre-configured environment that connects to the lume virtualization service running on your host machine. With Lumier, you get:
- A ready-to-use macOS or Linux virtual machine in minutes
- Browser-based VNC access to your VM
- Easy file sharing between your host and VM
- Simple configuration through environment variables
Requirements
Before using Lumier, make sure you have:
-
Docker for Apple Silicon - download it here and follow the installation instructions.
-
Lume - This is the virtualization CLI that powers Lumier. Install it with this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
Getting Started
# Run the container with temporary storage (using pre-built image from Docker Hub)
docker run -it --rm \
--name macos-vm \
-p 8006:8006 \
-e VM_NAME=macos-vm \
-e VERSION=ghcr.io/trycua/macos-sequoia-cua:latest \
-e CPU_CORES=4 \
-e RAM_SIZE=8192 \
trycua/lumier:latest
After running the command above, you can access your macOS VM through a web browser (e.g., http://localhost:8006).
Note: With the basic setup above, your VM will be reset when you stop the container (ephemeral mode). This means any changes you make inside the macOS VM will be lost. See the documentation for how to save your VM state.
Docs
Credits
This project was inspired by dockur/windows and dockur/macos, which pioneered the approach of running Windows and macOS VMs in Docker containers.
Main differences with dockur/macos:
- Lumier is specifically designed for macOS virtualization
- Lumier supports Apple Silicon (M1/M2/M3/M4) while dockur/macos only supports Intel
- Lumier uses the Apple Virtualization Framework (Vz) through the
lumeCLI to create true virtual machines, while dockur relies on KVM. - Image specification is different, with Lumier and Lume relying on Apple Vz spec (disk.img and nvram.bin)