diff options
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r-- | cmd/podman/create.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 520664c8e..fe6d30c9e 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -547,7 +547,10 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime, imageName string, if len(entrypoint) == 0 { entrypoint = data.ContainerConfig.Entrypoint } - + // if entrypoint=, we need to clear the entrypoint + if len(entrypoint) == 1 && c.IsSet("entrypoint") && strings.Join(c.StringSlice("entrypoint"), "") == "" { + entrypoint = []string{} + } // Build the command // If we have an entry point, it goes first if len(entrypoint) > 0 { |