Skip to content

dallinger docker build error on M2 Chip #281

@emieczkowski

Description

@emieczkowski

I am having trouble running the command dallinger docker build to deploy my experiment using Docker. I see this warning in Docker Desktop when I try to load the image:

image

and I get an error like this in terminal:

❯❯ Experiment UID: d1740e78-d320-c140-e3d7-090a09333ae3
Deployment temp directory: /var/folders/rp/drddpy_10vd_hlk0_w76l5_w0000gn/T/tmplanu_c2x/d1740e78-d320-c140-e3d7-090a09333ae3
Image [ghcr.io/dallinger/dallinger/griduniverse:15df4356](http://ghcr.io/dallinger/dallinger/griduniverse:15df4356) not found - building
[+] Building 1.2s (5/5) FINISHED                                                              docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                            0.0s
 => => transferring dockerfile: 1.87kB                                                                   0.0s
 => [internal] load .dockerignore                                                                      0.0s
 => => transferring context: 2B                                                                       0.0s
 => resolve image config for [docker.io/docker/dockerfile:1](http://docker.io/docker/dockerfile:1)                                                         0.7s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021                       0.0s
 => ERROR [internal] load metadata for [ghcr.io/dallinger/dallinger:9.12.0](http://ghcr.io/dallinger/dallinger:9.12.0)                                                  0.3s
------
 > [internal] load metadata for [ghcr.io/dallinger/dallinger:9.12.0](http://ghcr.io/dallinger/dallinger:9.12.0):
------
Dockerfile:2
--------------------
  1 |   # syntax=docker/dockerfile:1
  2 | >>>     FROM [ghcr.io/dallinger/dallinger:9.12.0](http://ghcr.io/dallinger/dallinger:9.12.0)
  3 |       #
  4 |       RUN mkdir /experiment
--------------------
ERROR: failed to solve: [ghcr.io/dallinger/dallinger:9.12.0](http://ghcr.io/dallinger/dallinger:9.12.0): no match for platform in manifest sha256:cafd9586b779ed005863b9670a0b2018ecfd08893899cb47fe0ba3e3c43f471e: not found
Aborted!

When I looked up the issue, I saw "This error typically occurs when the Docker image you're trying to use does not have a version built for your computer's architecture. Since the error message mentions linux/arm64/v8, it suggests you're using an ARM64 architecture, which is common in newer models of Macs with Apple Silicon (like M1 or M2 chips) or certain Linux systems." I have an M2.

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