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

nvidia-docker does not work when dockerTools.buildLayeredImage contains packages grouped with buildEnv #2

Open
Avnerus opened this issue Apr 18, 2024 · 1 comment

Comments

@Avnerus
Copy link

Avnerus commented Apr 18, 2024

Hi!
Thank you for all of the information you are providing in your blog and in this repo.
I am rather new to nix and stumbled into a weird problem. I was wondering if this happened to you or if this is a potential Nix bug.
If I try to group packages with pkgs.buildEnv and put those into contents = [ ] of buildLayeredImage. Running docker --gpus=all (from ubuntu 20.04) fails with the following error:

CI runtime create failed: runc create failed: unable to start container process: error during container
init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: mount error: 
file creation failed: /mnt/docker/overlay2/9264fff237fb7d187a2669389670f00aa51d380173e095a53f1c992e5d715ed8/merged/lib/
firmware/nvidia/550.54.15/gsp_ga10x.bin: file exists: unknown.

However, if I replace buildEnv with symlinkJoin, it works.
Also, if I still use buildEnv, but build the docker image with buildImage rather than buildLayeredImage, it also works.

PS. This driver file: gsp_ga10x.bin, definitely does not exist in the docker image.

This happens also with the flake.nix provided in this repo (with a minimal image, no python, but packages are grouped with buildEnv).
What do you make of this?
Thank you!

@seanrmurphy
Copy link
Owner

Hi @Avnerus - thanks for this and apols for being slow to respond here - lemme look into this and get back to you later this week.

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

2 participants