mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Adding user namespace in README
Signed-off-by: rajasec <rajasec79@gmail.com> Added UID/GID mappings section as per review comments Signed-off-by: rajasec <rajasec79@gmail.com> Added UID/GID mappings section as per review comments Signed-off-by: rajasec <rajasec79@gmail.com> Change size to 65536 per comments Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
@@ -69,6 +69,7 @@ config := &configs.Config{
|
||||
{Type: configs.NEWUTS},
|
||||
{Type: configs.NEWIPC},
|
||||
{Type: configs.NEWPID},
|
||||
{Type: configs.NEWUSER},
|
||||
{Type: configs.NEWNET},
|
||||
}),
|
||||
Cgroups: &configs.Cgroup{
|
||||
@@ -129,6 +130,20 @@ config := &configs.Config{
|
||||
Flags: defaultMountFlags | syscall.MS_RDONLY,
|
||||
},
|
||||
},
|
||||
UidMappings: []configs.IDMap{
|
||||
{
|
||||
ContainerID: 0,
|
||||
Host: 1000,
|
||||
size: 65536,
|
||||
},
|
||||
},
|
||||
GidMappings: []configs.IDMap{
|
||||
{
|
||||
ContainerID: 0,
|
||||
Host: 1000,
|
||||
size: 65536,
|
||||
},
|
||||
},
|
||||
Networks: []*configs.Network{
|
||||
{
|
||||
Type: "loopback",
|
||||
|
||||
Reference in New Issue
Block a user