-
-
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
"Out of Memory" in Docker preview guest on M1 Mac Mini #4485
Comments
May be related to NixOS/nixpkgs#38635 (and sorry if this is in the wrong repo) |
No. |
I wanted to add that I'm seeing this same issue and it has nothing to do with
But if I run the command again, it (generally) succeeds (i.e., this is not deterministic behavior...which is frustrating but also suggestive of a bug). This only happens when I use this Docker image on my M1 Mac. As with the OP, I also tried increasing memory, but this isn't an issue with how much memory is available. I can watch the system with |
I should add that I'm running a Docker Desktop version that reports itself as being |
Seems to be a docker issue: docker/for-mac#5204 |
Describe the bug
All the nix commands I've tried with both the docker LnL7/nix and nixos/nix images fail with out of memory errors using the Docker Preview on an M1 Mac Mini.
EDIT: Note that while my examples show me mounting the CWD to /nixpkgs, this is not necessary to reproduce the bug. Either of these commands will have the same issue without the volume mount:
Steps To Reproduce
Install the current Docker M1 Tech Preview:
https://docs.docker.com/docker-for-mac/apple-m1/
https://desktop.docker.com/mac/m1preview/Docker-AppleSilicon-Preview7.dmg
Execute this command:
You'll see:
You can try increasing the memory, but I got the same error up to 6gb.
Expected behavior
"21.03pre266259.2fcf614ea38"
nix-env --version
outputAdditional context
My suspicion is that there is an underlying docker issue, but I still felt it was worth officially documenting it.
The text was updated successfully, but these errors were encountered: