systemd-enabled Ubuntu 24.04 base image for Apple container machines
1.3K
A systemd-enabled Ubuntu 24.04 image built primarily as a base image for Apple container machines. It is OCI-compatible and also runs in Docker and other runtimes.
container machine create jcbl1/ubuntu-machine:latest --name ubuntu
container machine set-default ubuntu
container machine run -n ubuntu
The machine gets your macOS username, UID/GID, and home directory mapped in, with systemd as PID 1 and passwordless sudo.
docker pull jcbl1/ubuntu-machine:latest
docker run -d --name ubuntu-machine --hostname ubuntu-machine \
--privileged -p 2222:22 \
jcbl1/ubuntu-machine:latest
The image runs systemd as PID 1 and needs a systemd-capable runtime. --privileged is the simplest option; use narrower capabilities where possible.
No credentials or private keys are baked into the image. Only create container machines from images you trust.
docker pull jcbl1/ubuntu-machine:latest