mirror of
https://github.com/containers/podman.git
synced 2025-12-08 23:00:23 +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:
@@ -87,7 +87,7 @@ func makeCommand(ctx context.Context, s *specgen.SpecGenerator, img *image.Image
|
||||
finalCommand := []string{}
|
||||
|
||||
entrypoint := s.Entrypoint
|
||||
if len(entrypoint) == 0 && img != nil {
|
||||
if entrypoint == nil && img != nil {
|
||||
newEntry, err := img.Entrypoint(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user