From 66b93c7ca0427d9dbbfe8d65d3d36a1e7d2753e1 Mon Sep 17 00:00:00 2001 From: Manohar Castelino Date: Fri, 10 May 2019 17:53:00 -0700 Subject: [PATCH] Networking: Ensure that network namespace is propagated Network namespace needs to be propagated if available at createSandbox() Fixes: #1664 Signed-off-by: Manohar Castelino --- virtcontainers/sandbox.go | 1 + 1 file changed, 1 insertion(+) diff --git a/virtcontainers/sandbox.go b/virtcontainers/sandbox.go index 18ed78c10..f02ebbbdc 100644 --- a/virtcontainers/sandbox.go +++ b/virtcontainers/sandbox.go @@ -543,6 +543,7 @@ func newSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Factor shmSize: sandboxConfig.ShmSize, sharePidNs: sandboxConfig.SharePidNs, stateful: sandboxConfig.Stateful, + networkNS: NetworkNamespace{NetNsPath: sandboxConfig.NetworkConfig.NetNSPath}, ctx: ctx, }