Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Build Docker container fails for Mac M2 #15

Open
chrarnold opened this issue Aug 11, 2024 · 0 comments
Open

Build Docker container fails for Mac M2 #15

chrarnold opened this issue Aug 11, 2024 · 0 comments

Comments

@chrarnold
Copy link

chrarnold commented Aug 11, 2024

Hi all,
I am trying to build a Docker image based on ghcr.io/openproblems-bio/base_r

I am building this currently on my Mac M2. However, I get an error (see below). The first line in my Dockerfile is this:

FROM --platform=$BUILDPLATFORM ghcr.io/openproblems-bio/base_r:1.0.4

$ echo $BUILDPLATFORM
arm64

I use this command for building the image:
docker build --platform arm64

Still, I receive this error:
- InvalidBaseImagePlatform: Base image ghcr.io/openproblems-bio/base_r:1.0.4 was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 2)

Is it possible that ghcr.io/openproblems-bio/base_r is currently only available for "linux/amd64"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@chrarnold and others