mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #35957 from crosbymichael/ramdisk
Honor DOCKER_RAMDISK with containerd 1.0
This commit is contained in:
commit
94b8a116fb
1 changed files with 3 additions and 2 deletions
|
@ -264,6 +264,7 @@ func (c *client) Start(ctx context.Context, id, checkpointDir string, withStdin
|
||||||
info.Options = &runctypes.CreateOptions{
|
info.Options = &runctypes.CreateOptions{
|
||||||
IoUid: uint32(uid),
|
IoUid: uint32(uid),
|
||||||
IoGid: uint32(gid),
|
IoGid: uint32(gid),
|
||||||
|
NoPivotRoot: os.Getenv("DOCKER_RAMDISK") != "",
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue