From 6fab1c1b780b5fde6d59d1ee7ac491b3df8e32bd Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 3 Apr 2018 09:12:39 -0500 Subject: --entrypoint= should delete existing entrypoint Resolves: #572 Signed-off-by: baude Closes: #585 Approved by: mheon --- cmd/podman/create.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/podman') 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 { -- cgit v1.2.3-54-g00ecf