Closed ghost closed 8 months ago
Hey maintainers
Can this https://github.com/hashicorp/packer/issues/7487#issuecomment-489430007 be the default behavior?
i.e not having to explicitly set ENTRYPOINT and CMD to an empty array. These should be null by default, if not set
This issue was originally opened by @bertramn as hashicorp/packer#7487. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
We are using packer to build a container with a parent that includes an entrypoint. In the packer build we "reset" entrypoint with
ENTRYPOINT []
. Unfortunately the container is being committed with the entrypoint of the parent still in place.Doing this in a Dockerfile gets rid of the entrypoint from parent:
While the same in packer version does not: