Skip to content

Conversation

@dcantah
Copy link
Member

@dcantah dcantah commented Nov 18, 2025

Closes #321

This allows you to pass a path to an OCI runtime to use to launch a container instead of the default vmexec.

@dcantah
Copy link
Member Author

dcantah commented Nov 18, 2025

Will fix zee tests later today

@dcantah dcantah force-pushed the oci-it-up-yay branch 2 times, most recently from 5f57703 to ff4f083 Compare November 20, 2025 21:27
This allows you to pass a path to an OCI runtime to use
to launch a container instead of the default vmexec.
@jglogan jglogan self-requested a review November 21, 2025 17:06
@dcantah dcantah merged commit 836b699 into apple:main Nov 21, 2025
2 checks passed
public var virtualization: Bool = false
/// Optional destination for serial boot logs.
public var bootLog: BootLog?
/// EXPERIMENTAL: Path in the root filesystem for the virtual
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the semantics such that if defined, this overrides using the default runtime offered by the VMM? It might be good to spell this out in this docc.

options: [String] = [],
uidMappings: [LinuxIDMapping] = [],
gidMappings: [LinuxIDMapping] = []
uidMappings: [LinuxIDMapping]? = nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: In case we ever want to take a crack at generating Swift from spec, https://github.pie.apple.com/vessel/swift-docker-api demonstrates an approach for converting Open API/Swagger to Swift bindings with some stuff to handle things that are optional in practice but required according to what the spec says.

richardkiene added a commit to Vas-Solutus/arca-containerization that referenced this pull request Dec 1, 2025
Sync with Apple's containerization repo (57 commits behind).

Notable upstream changes:
- LinuxContainer: "Harden" stop (apple#388)
- OCI runtime support (apple#416)
- Memory threshold monitoring (apple#427)
- FileHandle option for serial console (apple#410)
- Keep reference to vended execs (apple#408)
- Sync(2) on shutdown (apple#400)
- Fix ImageStore.prune() behavior (apple#420)
- Various stability improvements

Resolved conflicts:
- LinuxContainer.swift: Merged bootLog type change with our useNetworkNamespace
- Application.swift: Kept our service startup code (removed old log line per upstream)
- Server+GRPC.swift: Used upstream's async ManagedContainer, kept our DNS comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Support OCI runtimes

5 participants