Skip to content

Commit

Permalink
Merge pull request #7298 from deckhouse/docker-compat-1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkarp committed Aug 16, 2022
2 parents 9ff7280 + 0448673 commit 1be2cb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cri/opts/spec.go
Expand Up @@ -63,7 +63,9 @@ func WithProcessArgs(config *runtime.ContainerConfig, image *imagespec.ImageConf
args = append([]string{}, image.Cmd...)
}
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 {
Expand Down

0 comments on commit 1be2cb3

Please sign in to comment.