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

Build Docker container fails for Mac M2 #15

@chrarnold

Description

@chrarnold

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"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions