We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3491ecc + 1066a92 commit ecb4e48Copy full SHA for ecb4e48
generate.go
@@ -133,6 +133,9 @@ func modify(spec *rspec.Spec, context *cli.Context) error {
133
spec.Hostname = context.String("hostname")
134
spec.Process.User.UID = uint32(context.Int("uid"))
135
spec.Process.User.GID = uint32(context.Int("gid"))
136
+ if spec.Process.Args == nil {
137
+ spec.Process.Args = make([]string, 0)
138
+ }
139
spec.Process.SelinuxLabel = context.String("selinux-label")
140
spec.Linux.MountLabel = context.String("mount-label")
141
spec.Platform.OS = context.String("os")
0 commit comments