-
Notifications
You must be signed in to change notification settings - Fork 347
Add rprivate to CDI mount options #980
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
Conversation
2563d17
to
a4956e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ensures that mount propagation is set to rprivate for host-to-container mounts by replacing the "bind" option with "rbind" and adding "rprivate".
- Updates test files and production code to use the updated mount options.
- Aligns mount options configuration with Docker’s default behavior to prevent propagation issues.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
internal/platform-support/tegra/csv_test.go | Updated mount options in CSV-related test cases |
internal/discover/mounts_test.go | Updated mount options in mount tests |
internal/discover/mounts.go | Modified the production mount configuration |
internal/discover/mounts-to-container-path_test.go | Updated mount options in container-path test cases |
internal/discover/mounts-to-container-path.go | Updated mount options in container-path logic |
internal/discover/ipc_test.go | Updated mount options in IPC mount tests |
cmd/nvidia-ctk/cdi/generate/generate_test.go | Updated mount options in CDI generation tests |
cmd/nvidia-ctk-installer/container/toolkit/toolkit_test.go | Updated mount options in installer tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR should be ready after rebase
This ensures that mount propagation is set to rprivate for mounts from the host into the container. This aligns with the default in docker. Signed-off-by: Evan Lezar <[email protected]>
a4956e6
to
d0103aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This ensures that mount propagation is set to rprivate for mounts from the host into the container. This aligns with the default in docker.
This would also prevent issues such as #697