You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes the state.json file 1303 bytes or almost 25% smaller (when
using the default spec, YMMV) by omitting default values.
Before: 5496 bytes
After: 4193 bytes
(With cgroups#9 applied, the new size is 3424, which is almost 40%
savings, compared to the original).
Signed-off-by: Kir Kolyshkin <[email protected]>
// Mounts specify additional source and destination paths that will be mounted inside the container's
116
-
// rootfs and mount namespace if specified
116
+
// rootfs and mount namespace if specified.
117
117
Mounts []*Mount`json:"mounts"`
118
118
119
119
// The device nodes that should be automatically created within the container upon container start. Note, make sure that the node is marked as allowed in the cgroup as well!
120
120
Devices []*devices.Device`json:"devices"`
121
121
122
-
MountLabelstring`json:"mount_label"`
122
+
MountLabelstring`json:"mount_label,omitempty"`
123
123
124
-
// Hostname optionally sets the container's hostname if provided
125
-
Hostnamestring`json:"hostname"`
124
+
// Hostname optionally sets the container's hostname if provided.
125
+
Hostnamestring`json:"hostname,omitempty"`
126
126
127
-
// Domainname optionally sets the container's domainname if provided
128
-
Domainnamestring`json:"domainname"`
127
+
// Domainname optionally sets the container's domainname if provided.
128
+
Domainnamestring`json:"domainname,omitempty"`
129
129
130
130
// Namespaces specifies the container's namespaces that it should setup when cloning the init process
131
-
// If a namespace is not provided that namespace is shared from the container's parent process
131
+
// If a namespace is not provided that namespace is shared from the container's parent process.
132
132
NamespacesNamespaces`json:"namespaces"`
133
133
134
134
// Capabilities specify the capabilities to keep when executing the process inside the container
135
-
// All capabilities not specified will be dropped from the processes capability mask
136
-
Capabilities*Capabilities`json:"capabilities"`
135
+
// All capabilities not specified will be dropped from the processes capability mask.
0 commit comments