mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-01 07:47:15 +00:00
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 <bergwolf@gmail.com>
This commit is contained in:
parent
daa80c244d
commit
ec80a55b74
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user