-
Notifications
You must be signed in to change notification settings - Fork 121
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
Running postgis/postgis crashes on Apple Sillicon #5122
Comments
Can this be related to #5123? |
I'm seeing the exact same thing on MacBook Air M1, macOS 11.0.1, and postgis/postgis:12-3.0-alpine |
FYI, this doesn't crash when running a native arm image. I opened postgis/docker-postgis#216 to publish arm postgis image, in the meanwhile one can use https://github.com/postgis/docker-postgis/blob/69856e1090dfd6a755ba3aebf13c594e0c0aa5a3/13-3.0/Dockerfile to locally build an arm image. |
Thanks @derdaele that worked for me. I ended up having to clone https://github.com/postgis/docker-postgis to run the build. I pushed it up to docker hub https://hub.docker.com/repository/docker/gangstead/postgis so if anyone just wants to run postgis for local development they can just use mine as a stopgap until there's an arm64 tagged image. |
This is a qemu bug, which is the upstream component we use for running Intel (amd64) containers on M1 (arm64) chips, and is unfortunately not something we control. In general we recommend running arm64 containers on M1 chips because (even ignoring any crashes) they will always be faster and use less memory. Please encourage the author of this container to supply an arm64 or multi-arch image, not just an Intel one. Now that M1 is a mainstream platform, we think that most container authors will be keen to do this. |
@gangstead hey, do you know by the chance a similar image but for postgre 11 and postgis 2.5? On my current project, we use postgres 11 and after we added postgis 2.5 I spent many hours to try to install it to my mac PostGIS 2.5 but with no success then tried to use docker for DB and only after I found your link I was able to start the app. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
The run works.
Actual behavior
The run fails with a PANIC error message.
Information
Remark: The official postgis/postgis isn't available for arm64. Using a community postgis arm64 image does properly work.
Diagnostic logs
Steps to reproduce the behavior
docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=password postgis/postgis
The text was updated successfully, but these errors were encountered: