Merge pull request #8149 from Burning1020/sb-netns

sandbox: create sandbox with network namespace path
This commit is contained in:
Maksym Pavlenko
2023-03-08 14:22:00 -08:00
committed by GitHub
9 changed files with 384 additions and 337 deletions

View File

@@ -126,6 +126,7 @@ func (c *controllerLocal) Create(ctx context.Context, sandboxID string, opts ...
BundlePath: shim.Bundle(),
Rootfs: coptions.Rootfs,
Options: options,
NetnsPath: coptions.NetNSPath,
}); err != nil {
// Let the shim exit, then we can clean up the bundle after.
if _, sErr := svc.ShutdownSandbox(ctx, &runtimeAPI.ShutdownSandboxRequest{