minus34 / gnaf-loader

A quick way to get started with Geoscape's open GNAF & Admin Boundaries
Apache License 2.0
182 stars 66 forks source link

No Match for Platform - running on a M1 Apple Chip #87

Open PeerLabs opened 6 days ago

PeerLabs commented 6 days ago

Hi, Thanks for providing this resource...

When I try to run the following:

docker pull minus34/gnafloader:latest

I get the following ....

What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview minus34/gnafloader:latest
Error response from daemon: no match for platform in manifest: not found

When I run the following:

docker scout quickview minus34/gnafloader:latest

I get the following:

    ✗ Pull failed
ERROR   Status: failed to get image minus34/gnafloader:latest: failed to pull image minus34/gnafloader:latest: no child with platform linux/arm64 in index minus34/gnafloader:latest, Code: 1 

What are my options around this?

I am considering building the database on a docker image directly, however I have serious misgivings regarding of my lack of docker and Postgres experience. ;)

Appreciate some guidance. Thanks in advance!

minus34 commented 5 days ago

Hi @PeerLabs, try adding --platform linux/amd64 to your pull command. That should work.

FYI - I've got linux/arm64 support for the Docker container in my backlog. Unfortunately, the current Dockerfile has a build that doesn't work with ARM64, so it'll require some major rework to support both AMD64 and ARM64 natively.