Merge pull request #1856 from crosbymichael/mountns

Remove mount namespace from shim
This commit is contained in:
Stephen Day
2017-12-01 16:01:44 -08:00
committed by GitHub
7 changed files with 19 additions and 27 deletions

View File

@@ -211,8 +211,8 @@ func (w *worker) runContainer(ctx context.Context, id string) error {
// fix up cgroups path for a default config
w.spec.Linux.CgroupsPath = filepath.Join("/", "stress", id)
c, err := w.client.NewContainer(ctx, id,
containerd.WithSpec(w.spec),
containerd.WithNewSnapshot(id, w.image),
containerd.WithSpec(w.spec, oci.WithUsername("games")),
)
if err != nil {
return err