From ec80a55b7468d76040768e83fa2313f9651097b9 Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Mon, 3 Sep 2018 20:08:54 +0800 Subject: [PATCH] kata_agent: disable cgroup namespace We do not support it yet. If we pass it to the agent, container creation will fail. Fixes: #711 Signed-off-by: Peng Tao --- virtcontainers/kata_agent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index fc9d10c89b..41e0d1541a 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -684,6 +684,7 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) { var tmpNamespaces []grpc.LinuxNamespace for _, ns := range grpcSpec.Linux.Namespaces { switch ns.Type { + case specs.CgroupNamespace: case specs.NetworkNamespace: default: ns.Path = ""