Add container machine for managing persistent Linux environments#1662
Merged
Conversation
crosbymichael
approved these changes
Jun 8, 2026
egernst
approved these changes
Jun 8, 2026
`container machine` creates and manages container machines: lightweight, persistent, and integrated Linux environments that feel like an extension of your Mac, created from standard OCI images with a familiar UX. Subcommands: create, run, list (ls), inspect, set, set-default, logs, stop, delete (rm). `m` aliases machine. Adds command-reference and how-to docs. Co-authored-by: Jaewon Hur <jaewon_hur@apple.com> Co-authored-by: John Logan <john_logan@apple.com> Co-authored-by: Michael Crosby <michael_crosby@apple.com> Co-authored-by: Eric Ernst <eric_ernst@apple.com> Co-authored-by: Danny Canter <danny_canter@apple.com> Signed-off-by: Raj Aryan Singh <rajaryan_singh@apple.com>
601c7ec to
f3647ec
Compare
egernst
approved these changes
Jun 8, 2026
Code Coverage
|
container machine for managing persistent Linux VMscontainer machine for managing persistent Linux environments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Motivation and Context
containerruns each workload in an ephemeral VM, so there's no built-in way to keep a persistent Linux environment you can log into and work in.container machineadds one.A container machine is a lightweight, persistent, and integrated Linux environments that feel like an extension of your Mac, created from standard OCI images with a familiar UX. The login user matches your host account with passwordless
sudo, your home directory is mounted inside the VM, and each machine keeps its filesystem and runs the image's own init system (such assystemdoropenrc).Subcommands:
create,run,list(ls),inspect,set,set-default,logs,stop,delete(rm);maliasesmachine. Docs added todocs/command-reference.md(Machine Management) anddocs/how-to.md("Use container machines").Testing