Git Product home page Git Product logo

Comments (3)

harridu avatar harridu commented on August 15, 2024

Ain't the proper isolation of the containers wrt UIDs and GIDs an LXC issue? I would be very interested in this feature for LXC.

from lxd.

stgraber avatar stgraber commented on August 15, 2024

LXC lets you do it already, making it automatic and more user friendly is where LXD comes in.

from lxd.

stgraber avatar stgraber commented on August 15, 2024

Instead of doing security groups, we'll just implement

 - security.idmap.size: auto (if non-isolated, all mappable uid/gid, if isolated, 65536)
 - security.idmap.isolated: false
 - raw.idmap: |-
    both 1000 1000
    uid 100 2500
    gid 10 3000
    uid 50-60 50-60

To have all containers on separate maps, the user will just need to set:

 - security.idmap.isolated: true

Which will have each container get its own chunk of 65536 uid/gid.

To have a different sized chunk you can set:

 - security.idmap.size: 1000000

Which will bump the uid/gid allocation to a million.

To setup custom maps, passing uid 1000 from the host to container, one can set:

 - raw.idmap: |-
     uid 1000 1000

Format is "type", "host", "container".
Ranges can be used for "host" and "container" (must be of same size) using "START-END" notation.

from lxd.

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.