Merge pull request #504 from rajasec/readmeupdate

Adding user namespace in README
This commit is contained in:
Mrunal Patel 2016-01-25 18:10:50 -08:00
commit 6bfdfce967
1 changed files with 15 additions and 0 deletions

View File

@ -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",