sandbox: create sandbox with network namespace path

Signed-off-by: Zhang Tianyang <burning9699@gmail.com>
This commit is contained in:
Zhang Tianyang
2023-02-22 15:58:24 +08:00
parent 8cb00f45c9
commit 5144ba9c49
9 changed files with 384 additions and 337 deletions

View File

@@ -125,6 +125,7 @@ func (c *controllerLocal) Create(ctx context.Context, sandboxID string, opts ...
BundlePath: shim.Bundle(),
Rootfs: coptions.Rootfs,
Options: options,
NetnsPath: coptions.NetNSPath,
}); err != nil {
// TODO: Delete sandbox shim here.
return fmt.Errorf("failed to start sandbox %s: %w", sandboxID, errdefs.FromGRPC(err))