summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/podman/create.go5
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 {