mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Fix handling of entrypoint
If a user specifies an entrypoint of "" then we should not use the images entrypoint. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -81,7 +81,7 @@ func makeCreateConfig(ctx context.Context, containerConfig *config.Config, input
|
||||
workDir = input.WorkingDir
|
||||
}
|
||||
|
||||
if len(input.Entrypoint) == 0 {
|
||||
if input.Entrypoint == nil {
|
||||
entrypointSlice, err := newImage.Entrypoint(ctx)
|
||||
if err != nil {
|
||||
return createconfig.CreateConfig{}, err
|
||||
|
Reference in New Issue
Block a user