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

nixos/nix:latest arm64 docker image missing #10648

Closed
adwinying opened this issue May 6, 2024 · 2 comments
Closed

nixos/nix:latest arm64 docker image missing #10648

adwinying opened this issue May 6, 2024 · 2 comments
Labels

Comments

@adwinying
Copy link

Describe the bug

An attempt to pull nixos/nix:latest in an arm64 environment failed, even though it has been working all this time.

/usr/bin/docker buildx build --iidfile /tmp/docker-actions-toolkit-AJ2VQP/iidfile --platform linux/amd64,linux/arm64 --tag ***/devcontainer:0cd0e6f4be926c3b34bbe2c273684c27365dcad5 --tag ***/devcontainer:latest --metadata-file /tmp/docker-actions-toolkit-AJ2VQP/metadata-file --push .
#0 building with "builder-0a3a54ca-83dd-432a-b438-34579911e07c" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.01kB done
#1 DONE 0.0s

#2 [linux/amd64 internal] load metadata for docker.io/nixos/nix:latest
#2 ...

#3 [auth] nixos/nix:pull token for registry-1.docker.io
#3 DONE 0.0s

#4 [linux/arm64 internal] load metadata for docker.io/nixos/nix:latest
#4 ERROR: no match for platform in manifest: not found

#2 [linux/amd64 internal] load metadata for docker.io/nixos/nix:latest
#2 CANCELED
------
 > [linux/arm64 internal] load metadata for docker.io/nixos/nix:latest:
------
Dockerfile:1
--------------------
   1 | >>> FROM nixos/nix
   2 |     
   3 |     ARG TERM
--------------------
ERROR: failed to solve: nixos/nix: failed to resolve source metadata for docker.io/nixos/nix:latest: no match for platform in manifest: not found

Upon further inspection in docker hub the latest tag no longer has an arm64 version:

image

Steps To Reproduce

Run docker pull nixos/nix:latest in arm64 environment

Expected behavior

Command runs without errors

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

@vcunat
Copy link
Member

vcunat commented May 9, 2024

The docs suggest using ghcr.io/nixos/nix, but doesn't seem helpful here either. Using docker.io/nixos/nix:latest-arm64 does work, but I'm honestly disappointed. (BTW, ghcr.io doesn't have that tag.)

@edolstra
Copy link
Member

Fixed with the 2.22.1 release.

edolstra added a commit to edolstra/nix that referenced this issue May 10, 2024
The warning was done to handle older Nix releases that didn't have
Docker images (091f232), but this was
a bad idea because it causes us to silently skip uploading Docker
images if e.g. Hydra hasn't finished building them yet.

Issue NixOS#10648.
pull bot pushed a commit to auxolotl/nix that referenced this issue May 11, 2024
The warning was done to handle older Nix releases that didn't have
Docker images (091f232), but this was
a bad idea because it causes us to silently skip uploading Docker
images if e.g. Hydra hasn't finished building them yet.

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

No branches or pull requests

3 participants