-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Fix nvidia container toolkit docker contamination #331071
Merged
SomeoneSerge
merged 3 commits into
NixOS:master
from
ereslibre:fix-nvidia-container-toolkit-docker-contamination
Aug 22, 2024
Merged
Fix nvidia container toolkit docker contamination #331071
SomeoneSerge
merged 3 commits into
NixOS:master
from
ereslibre:fix-nvidia-container-toolkit-docker-contamination
Aug 22, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
8.has: module (update)
This PR changes an existing module in `nixos/`
labels
Jul 30, 2024
ofborg
bot
added
10.rebuild-darwin: 0
This PR does not cause any packages to rebuild on Darwin
10.rebuild-linux: 1-10
labels
Jul 30, 2024
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
6 times, most recently
from
July 31, 2024 08:09
8ff9584
to
a7c05c5
Compare
ereslibre
commented
Jul 31, 2024
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
from
August 2, 2024 10:23
a7c05c5
to
f7dcc2d
Compare
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
from
August 16, 2024 10:41
f7dcc2d
to
176a8c9
Compare
At this time, the nvidia-container-toolkit derivation installs a docker executable that shadows the main one, and that is not thought to forward commands to the original docker command, causing issues to users when the `nvidia-container-toolkit` is in scope and they try to call to `docker`.
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
from
August 16, 2024 13:46
176a8c9
to
af0c5aa
Compare
Although CDI should be used in order to not require container runtime wrappers anymore, fix the nvidia-container-runtime integration with Docker for cases when Docker < 25.
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
from
August 16, 2024 13:49
af0c5aa
to
0f9a29a
Compare
Since version 4.1.0, podman has support for CDI, and is the recommended way to expose GPU's for containers for podman. More information: https://web.archive.org/web/20240729183805/https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#configuring-podman
ereslibre
force-pushed
the
fix-nvidia-container-toolkit-docker-contamination
branch
from
August 16, 2024 16:16
0f9a29a
to
058e8f5
Compare
@ofborg build nvidia-docker |
@SomeoneSerge: is this good to merge on its current status? |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.05
git worktree add -d .worktree/backport-331071-to-release-24.05 origin/release-24.05
cd .worktree/backport-331071-to-release-24.05
git switch --create backport-331071-to-release-24.05
git cherry-pick -x df2df4c3a61bb110694e00cde38d871c7761bc08 f7b4d57421d67baf096e0b46168699e774067812 058e8f5ef11cd5291cf03aa4a886e475cf7bdd71 |
ereslibre
deleted the
fix-nvidia-container-toolkit-docker-contamination
branch
August 22, 2024 21:16
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
8.has: clean-up
8.has: module (update)
This PR changes an existing module in `nixos/`
10.rebuild-darwin: 0
This PR does not cause any packages to rebuild on Darwin
10.rebuild-linux: 1-10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
This PR implements three main changes.
containerd
,crio
ordocker
binaries with tools that are meant to set up the host with the NVIDIA container toolkit (https://github.com/NVIDIA/nvidia-container-toolkit/tree/a470818ba7d9166be282cd0039dd2fc9b0a34d73/tools/container)--runtime=nvidia --gpus=
use case work as expected.Things done
Tested, with the NixOS options:
The following works as expected:
Fixes: #293857
Fixes: #322400
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.