Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dallinger docker build error on M2 Chip #281

Open
emieczkowski opened this issue Feb 15, 2024 · 0 comments
Open

dallinger docker build error on M2 Chip #281

emieczkowski opened this issue Feb 15, 2024 · 0 comments

Comments

@emieczkowski
Copy link

emieczkowski commented Feb 15, 2024

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.

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

No branches or pull requests

1 participant