Comments (5)
I did that for mount slave propagation initially and it's also useful for error teardown and driver unbinding from the container. Agreed it's badly documented, so as the rest of the code :)
I guess the error comes from overlay trying to hardlink across layers without a copy up. I remember some changes along those lines in recent kernels, it might be worth testing this as well as other storage drivers (e.g. AUFS).
from libnvidia-container.
I guess the error comes from overlay trying to hardlink across layers without a copy up.
That explains the error with yum install -y git
, but the ln /usr/bin/find /usr/myfind
will fail on all storage drivers, including vfs
. That's because it indeed becomes a cross-device
link with the code we have :)
I remember some changes along those lines in recent kernels, it might be worth testing this as well as other storage drivers (e.g. AUFS).
FWIW, AUFS on 4.10 (xenial) fails with the yum install -y git
.
from libnvidia-container.
Yeah cross-mount rename
and link
are not permitted:
https://github.com/torvalds/linux/blob/master/fs/namei.c#L4272-L4274
https://github.com/torvalds/linux/blob/master/fs/namei.c#L4525-L4527
We might get away with most of those if we overlay the entire partition but I'm not particularly fond of this idea.
from libnvidia-container.
And oddly enough, this seems to be deliberate
http://lkml.iu.edu/hypermail/linux/kernel/0305.0/1222.html
from libnvidia-container.
Right, so looks like we don't have a choice so we have to bite the bullet and remove this top-level bind mount? At the cost of harder teardown.
from libnvidia-container.
Related Issues (20)
- seg fault when running bundle with libnvidia-container-tools installed in container HOT 7
- why does nvidia-container-cli load libnvidia-ml via dlopen rather than linking directly? HOT 4
- Fail to start on second run. libs being set to 0 size HOT 2
- libnvidia-container ubuntu22.04/amd64 HOT 4
- libnvidia_container fails to compile with mold HOT 3
- Issue in permissions checking in nvcgo/internal/cgroup/ebpf.go ? HOT 2
- nvidia-container-runtime segfault HOT 2
- sudo yum install -y nvidia-container-toolkit failed - No such device
- nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory
- Warning of Key is stored in legacy trusted.gpg keyring HOT 2
- Unprivileged `nvidia-container-cli --user configure`
- ldconfig-free deployment
- Unable to use more than 5 GPU cards HOT 2
- Building libnvidia-container 1.14.5 builds 1.14.4 HOT 19
- nvidia-container-cli: mount error: failed to add device rules: unable to generate new device filter program from existing programs: unable to create new device filters program: load program: invalid argument: 0: (69) r2 = *(u16 *)(r1 +0)
- Trouble Running NVIDIA GPU Containers on Custom Yocto-Based Distro on HPE Server with NVIDIA A40 GPU HOT 5
- How to mirror this Nvidia libnividia rmp repo with artifactory rpm repo HOT 1
- versions.mk and common.mk use PATCH variable for different things
- Support for Ubuntu 24.04 HOT 3
- Error linking when the library version on the host is lower than that in the image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnvidia-container.