hotosm / osm-fieldwork

Processing field data from ODK to OpenStreetMap format, and other field data collection utils.
GNU Affero General Public License v3.0
16 stars 79 forks source link

Challenges with Docker on M-Series MacBook: Default Support Issue #232

Closed Munanom closed 8 months ago

Munanom commented 8 months ago

The current implementation of docker doesn’t not support running default on m series MacBook

The expected behavior when running is an error : no matching manifest for linux/arm64/v8 in the manifest list entries.

spwoodcock commented 8 months ago

Is the issue also with building the image yourself? Or just running?

Looks like the prebuilt images may not be multiarch, but the base images to build yourself should be multiarch.

spwoodcock commented 8 months ago

For context there is a slack discussion about this. One possible fix suggested by @Munanom

screenshot_2024-03-10_at_12.35.58.png

Looks like our images are actually built multiarch, so this should not be an issue.

If you wish to run on ARM64 architecture (latest gen Macs), it's down to the user to configure their docker setup to work.

Munanom commented 8 months ago

Yes, I was the one who suggested this approach from slack after i was stuck, did some research and found a solution which fixed the error i was getting.

spwoodcock commented 8 months ago

An easier solution that would update your config globally is to add the following to your .zshrc file in your use directory:

export DOCKER_DEFAULT_PLATFORM=linux/arm64/v8