Merge pull request #8149 from Burning1020/sb-netns
sandbox: create sandbox with network namespace path
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user