Merge pull request #6805 from deckhouse/reset-empty-entrypoint

This commit is contained in:
Fu Wei 2022-04-14 19:43:06 +08:00 committed by GitHub
commit e0abf62710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,9 @@ func WithProcessArgs(config *runtime.ContainerConfig, image *imagespec.ImageConf
args = append([]string{}, image.Cmd...) args = append([]string{}, image.Cmd...)
} }
if command == nil { if command == nil {
command = append([]string{}, image.Entrypoint...) if !(len(image.Entrypoint) == 1 && image.Entrypoint[0] == "") {
command = append([]string{}, image.Entrypoint...)
}
} }
} }
if len(command) == 0 && len(args) == 0 { if len(command) == 0 && len(args) == 0 {