heyvito / podman-macos

πŸ“¦ Podman frontend for macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple Silicon / darwin-arm64 / m1 Support

sammcj opened this issue Β· comments

commented

As noted in your readme it would be great to have Apple Silicon / M1 support.

I'd be happy to test it out if you have a build but not the hardware.

Actually I’ve been talking about this issue at the #2.

Discussed in #2

Originally posted by simnalamburt September 5, 2021
Hi @heyvito! I have patched and packaged qemu and podman to make it work with Apple Silicon, and now I'm looking for the way to integrate it with podman-macos.

This is how to use patched version of podman in the CLI:

brew install simnalamburt/x/podman-apple-silicon

# Example
podman machine init
podman machine start
podman run -p 8080:80 docker.io/nginx

I tried to use it with podman-macos and this is the issues I get:

  1. podman-macos do not search podman binary in /opt/homebrew/bin

    You can workaround this issue by sudo ln -s /opt/homebrew/bin/podman /usr/local/bin/podman, but it would be better if podman-macos checks the /opt/homebrew/bin. Maybe we can fix this by appending /opt/homebrew/bin at the end of the result of PMManager::paths.

  2. podman-macos successfully reads states from podman but fails to write.

    After you deal with locating the podman binary, you'll find podman-macos successfully reads information from podman.

    스크란샷 2021-09-05 05 56 52

    But unfortunately any operation that tries to write something fails. For example, podman-macos is unable to stop podman VM.

    스크란샷 2021-09-05 05 55 33

I'm wiling to fix these issues but I don't know how to build or debug this project. Is there any chance for us to cooperate with these issues?

Hi there, @sammcj! Let's continue this in #2, shall we? πŸ™ŒπŸ»