Giter Site home page Giter Site logo

Comments (5)

3XX0 avatar 3XX0 commented on August 23, 2024

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.

flx42 avatar flx42 commented on August 23, 2024

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.

3XX0 avatar 3XX0 commented on August 23, 2024

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.

3XX0 avatar 3XX0 commented on August 23, 2024

And oddly enough, this seems to be deliberate

http://lkml.iu.edu/hypermail/linux/kernel/0305.0/1222.html

from libnvidia-container.

flx42 avatar flx42 commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.