-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Install fails for aarch64 in docker #5258
Comments
Might be a bug in docker? I see this issue from searching for "seccomp_load invalid argument": But you can turn off seccomp in Nix with |
awesome |
This should allow emulated builds to succeed as per NixOS/nix#5258 Change-type: patch
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cross-compilation-failing-with-nix-and-docker-on-macos/22169/4 |
- arm64 build fails with docker/build-push-action@v4 - NixOS/nix#5258 - LnL7/nix-docker#41
- arm64 build fails with docker/build-push-action@v4 - NixOS/nix#5258 - LnL7/nix-docker#41
## Description: Attempt to fix [this error](https://app.circleci.com/pipelines/github/kurtosis-tech/kurtosis/11230/workflows/88eae5e6-f3fd-4895-9af0-2685895b59d3/jobs/162867) possible linked to NixOS/nix#5258. ## Is this change user facing? NO
## Description: Fix the cross platform docker images that are trying to install nix by replacing the installer and passing extra config params. ## Is this change user facing? NO ## References (if applicable): - DeterminateSystems/nix-installer#324 - NixOS/nix#5258
This seems to break arm64 images. I don't know why this worked in the past. See NixOS/nix#5258.
Describe the bug
I'm trying to build a https://github.com/NixOS/docker like container for aarch64 using buildx's qemu soft emulation support, but am always getting a failure message of
error: while setting up the build environment: unable to load seccomp BPF program: Invalid argument
Steps To Reproduce
Local/harder to setup:
docker buildx build --platform linux/arm64 .
Easier:
Expected behavior
Installing nix in aarch64 docker container works.
nix-env --version
outputAdditional context
Searching for bpf errors leads me to #2651 (comment) which looks pretty similar but the workaround there doesn't help me. The Dockerfile is already setting
sandbox = false
in /etc/nix/nix.conf and I duplicated in/root/.nix/nix.conf
too which no luck.I'm not sure if @edolstra's comment #2651 (comment) would help here as I don't think its a username space issue. The same Dockerfile works in x86_64 mode.
The text was updated successfully, but these errors were encountered: