mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-18 16:08:25 +00:00
Merge pull request #1406 from egernst/fix-ctr-cpuset
runtime: cpuset: when creating container, don't pass cpuset details
This commit is contained in:
commit
14bb24e4ca
@ -964,6 +964,10 @@ func (k *kataAgent) constraintGRPCSpec(grpcSpec *grpc.Spec, passSeccomp bool) {
|
|||||||
grpcSpec.Linux.Resources.BlockIO = nil
|
grpcSpec.Linux.Resources.BlockIO = nil
|
||||||
grpcSpec.Linux.Resources.HugepageLimits = nil
|
grpcSpec.Linux.Resources.HugepageLimits = nil
|
||||||
grpcSpec.Linux.Resources.Network = nil
|
grpcSpec.Linux.Resources.Network = nil
|
||||||
|
if grpcSpec.Linux.Resources.CPU != nil {
|
||||||
|
grpcSpec.Linux.Resources.CPU.Cpus = ""
|
||||||
|
grpcSpec.Linux.Resources.CPU.Mems = ""
|
||||||
|
}
|
||||||
|
|
||||||
// There are three main reasons to do not apply systemd cgroups in the VM
|
// There are three main reasons to do not apply systemd cgroups in the VM
|
||||||
// - Initrd image doesn't have systemd.
|
// - Initrd image doesn't have systemd.
|
||||||
|
Loading…
Reference in New Issue
Block a user