postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.37k stars 462 forks source link

Latest public image `postgis/postgis` produces warning on macOS ARM #387

Open rquinlivan opened 1 month ago

rquinlivan commented 1 month ago

I am running this image on macOS ARM (Apple Silicon) with Docker Desktop.

I see the following error when running this image on my hardware:

 The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 

The image does appear to work, but I'm wondering if there is a way to fix the image so that it doesn't produce this warning on the macOS ARM platform.

ImreSamu commented 1 month ago

Thank you for your feedback.

Currently, the supported architecture for this image is amd64 (also known as x86-64). This might be causing the warning you encountered. You can try running the image with the following command to suppress the warning (although this hasn't been tested):

docker run --platform linux/amd64 <image_name>

For more information on the missing ARM64 image, please refer to this

Additionally, a new test postgis docker images with ARM64 support is available: