Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 Mac not working with Podman #2

Open
dudash opened this issue Aug 3, 2023 · 2 comments
Open

M1 Mac not working with Podman #2

dudash opened this issue Aug 3, 2023 · 2 comments

Comments

@dudash
Copy link

dudash commented Aug 3, 2023

I was trying this on a M1 macbookpro and running into the following error when creating the gateway:

πŸ•™ 17:23:05 ➜ skupper gateway init --config simple-podman.yaml --type podman
Error: Failed to start gateway as container: WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
Error: statfs /Users/jdudash/.local/share/skupper/cluster/jdudash-mac-jdudash: no such file or directory

AFAICT skupper doesn't currently provide arm64 container images. See here:
skupperproject/skupper#884

The instructions in this demo repo seem to imply it should work because there are instructions to deploy the database using arm
docker run --name database --detach --rm -p 5432:5432 quay.io/redhatintegration/patient-portal-database-arm64

Am I messing something up or missing something?
Thanks.

@hguerrero
Copy link

Hello, @dudash.

It appears to be something unique to Podman. If you use Docker Desktop on M2 MB, it works (but with a warning). We will look into it further.

image

@hguerrero hguerrero changed the title M1 Mac not working M1 Mac not working with Podman Aug 4, 2023
@hguerrero
Copy link

Following,

The 'statfs' issue appears to be caused by podman not correctly mounting the filesystems into the podman machine[1], which you should be able to resolve by running podman machine stop && podman machine start.

However, you will encounter another issue with lsetxattr because Mac does not support it[2] and podman does not automatically remove it from the call as Docker does.

Skupper has an issue with this. skupperproject/skupper#1195

[1] https://stackoverflow.com/a/76614072
[2] containers/podman-compose#509 (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

No branches or pull requests

2 participants