aboutsummaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r--pkg/spec/spec.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index 565c07014..d407b419a 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -21,7 +21,10 @@ const cpuPeriod = 100000
// CreateConfigToOCISpec parses information needed to create a container into an OCI runtime spec
func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint
cgroupPerm := "ro"
- g := generate.New()
+ g, err := generate.New("linux")
+ if err != nil {
+ return nil, err
+ }
g.HostSpecific = true
addCgroup := true
if config.Privileged {