mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
--entrypoint= should delete existing entrypoint
Resolves: #572 Signed-off-by: baude <bbaude@redhat.com> Closes: #585 Approved by: mheon
This commit is contained in:
@ -547,7 +547,10 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime, imageName string,
|
|||||||
if len(entrypoint) == 0 {
|
if len(entrypoint) == 0 {
|
||||||
entrypoint = data.ContainerConfig.Entrypoint
|
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
|
// Build the command
|
||||||
// If we have an entry point, it goes first
|
// If we have an entry point, it goes first
|
||||||
if len(entrypoint) > 0 {
|
if len(entrypoint) > 0 {
|
||||||
|
Reference in New Issue
Block a user