diff --git a/config.md b/config.md index e0c2db8fa..9c31046a9 100644 --- a/config.md +++ b/config.md @@ -404,12 +404,7 @@ Here is a full example `config.json` for reference. { "type": "mount" } - ], - "devices": null, - "seccomp": { - "defaultAction": "", - "architectures": null - } + ] } } ``` diff --git a/specs-go/config.go b/specs-go/config.go index dbf29f1ad..78f7607fb 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -128,9 +128,9 @@ type Linux struct { // If resources are specified, the cgroups at CgroupsPath will be updated based on resources. CgroupsPath *string `json:"cgroupsPath,omitempty"` // Namespaces contains the namespaces that are created and/or joined by the container - Namespaces []Namespace `json:"namespaces"` + Namespaces []Namespace `json:"namespaces,omitempty"` // Devices are a list of device nodes that are created for the container - Devices []Device `json:"devices"` + Devices []Device `json:"devices,omitempty"` // Seccomp specifies the seccomp security settings for the container. Seccomp *Seccomp `json:"seccomp,omitempty"` // RootfsPropagation is the rootfs mount propagation mode for the container.