mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-08 03:24: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
|
var tmpNamespaces []grpc.LinuxNamespace
|
||||||
for _, ns := range grpcSpec.Linux.Namespaces {
|
for _, ns := range grpcSpec.Linux.Namespaces {
|
||||||
switch ns.Type {
|
switch ns.Type {
|
||||||
|
case specs.CgroupNamespace:
|
||||||
case specs.NetworkNamespace:
|
case specs.NetworkNamespace:
|
||||||
default:
|
default:
|
||||||
ns.Path = ""
|
ns.Path = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user