diff --git a/pkg/api/resources.go b/pkg/api/resources.go index 1aa9cb0d..41acddd0 100644 --- a/pkg/api/resources.go +++ b/pkg/api/resources.go @@ -100,7 +100,10 @@ func (r *LinuxResources) ToOCI() *rspec.LinuxResources { if r == nil { return nil } - o := &rspec.LinuxResources{} + o := &rspec.LinuxResources{ + CPU: &rspec.LinuxCPU{}, + Memory: &rspec.LinuxMemory{}, + } if r.Memory != nil { o.Memory = &rspec.LinuxMemory{ Limit: r.Memory.Limit.Get(),