podman cannot be run in amd64 container running under OSX arm processor with rosetta #21582
Replies: 4 comments 4 replies
-
Looks like your setup is broken, |
Beta Was this translation helpful? Give feedback.
-
Seems like it would be easier to run Podman Desktop, instead of podman in DD? i.e. to use an linux/arm64 OS, and then build linux/amd64 with Podman (and qemu) |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this as well when running Podman within a Alpine image:
|
Beta Was this translation helpful? Give feedback.
-
@marvingreenberg This has been fixed in Podman v5.1.0.
|
Beta Was this translation helpful? Give feedback.
-
Issue Description
I've created a UBI9 based container to use in certain contexts, with podman installed (dnf install -y podman). I am on an Arm mac as everyone will be someday, running containers using Docker Desktop. I'm building x86-64 containers since that's the target platform, so I run them under Rosetta on osx.
The apparent way that (Docker Desktop) integration happens is somehow using rosetta to run every command. Apparently
podman
is looking at some absolute count to get the command argument and is failing. The scenario below shows thisSteps to reproduce the issue
Steps to reproduce the issue
podman info
A simple dockerfile is below.
Describe the results you received
$ podman info
Error: unrecognized command
podman podman
Describe the results you expected
I expect it to run. I understand that podman in this environment may not work properly - for example starting
podman machine
may fail, other things may not function. Interestingly this behavior is NOT observed forpodman machine info
, etc. For example,podman machine init
correctly parses the command line, and reports that it cannot start a VM.podman info output
Podman in a container
Yes
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions