Skip to content

Allow container machine set to configure a machine's init image - #2572

Draft
JaewonHur wants to merge 3 commits into
apple:mainfrom
JaewonHur:jaewonhur/allow-container-machine-set-to-configure
Draft

JaewonHur wants to merge 3 commits into
apple:mainfrom
JaewonHur:jaewonhur/allow-container-machine-set-to-configure

Conversation

@JaewonHur

Copy link
Copy Markdown
Contributor

Goal

Let users choose the init image of a container machine with container machine set init-image=<reference>, like the existing cpus, memory and kernel settings. The same setting is accepted by container machine create as --init-image <reference>. The value is stored with the machine and applies from its next boot. An empty value resets it to the system default.

Non-goals

  • Changing the init image used by container run.
  • Changing the machine's root filesystem image.

Acceptance criteria

  • container machine set init-image=<reference> stores the init image for the named (or default) machine.
  • After a restart, the machine boots with the configured init image.
  • container machine set init-image= resets to the system default.
  • A machine with no init-image set boots with the system default, as today.
  • container machine create --init-image <reference> <image> creates a machine that boots with that init image.
  • init-image is listed in the machine set and machine create help text.
  • An invalid reference gives a clear error and leaves the configuration unchanged (for create, no machine is created).

Open questions

@github-actions github-actions Bot added documentation Improvements or additions to documentation cli labels Nov 26, 2026
Swift's split drops empty subsequences by default, so 'key=' was rejected
as malformed. Keep empty pieces so a setting can be reset.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant