Podman containers in Apple Container Machine 1.0 #29105
afbjorklund
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a follow-up from last year, about running Podman in Apple Container:
With the new Apple Container 1.0.0, the syntax to do so has become easier:
https://developer.apple.com/videos/play/wwdc2026/389/
container machine create <image>alias coma='container machine run'https://github.com/apple/container/releases/tag/1.0.0
You can use Podman as a Container Machine.
This was the Containerfile that I used:
Currently though, it is missing socket mounts.
But it does boot in less than a second...
A simple workaround for the missing socket is to use SSH:
Since the home directory is mounted, it is easy to add keys:
# cp /Users/afb/.ssh/id_ed25519.pub /root/.ssh/authorized_keysAnd then you add the container machine as a connection:
$ podman system connection add container ssh://root@podman.container --identity /Users/afb/.ssh/id_ed25519The IP changes each boot, so you want to be using the DNS.
And now you can access it from the host, as well as from the guest.
By default, it uses half of your CPU and half of your RAM memory:
Beta Was this translation helpful? Give feedback.
All reactions