buildah: Buildah is injecting /bin/bash into cmd and should not be
Description
As reported by @pixdrift in #593 @rhatdan @TomSweeneyRedHat this isn’t a complete fix. When using buildah native it is injecting a spurious /bin/bash into cmd which shouldn’t be there.
What’s occuring then is that the cmd is being appended to the entrypoint. Changing entrypoint to /bin/sh -c will match docker entrypoint behaviour, but doesn’t fix buildah always injecting /bin/bash into cmd.
Steps to reproduce the issue: build and image using buildah bud or buildah cmd. Then run ‘buildah inspect’ on the image and note the extraneous /bin/bash in the Cmd.
Describe the results you received: See description.
Describe the results you expected:
No extraneous /bin/bash. This can can cause the container to not be run appropriately.
Output of buildah version
:
Buildah v0.16
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 36 (16 by maintainers)
@rhatdan, sadly yes 😥
This is where it was coming from. The problem in #593 was that it was coming from the parent container (centos 7) and getting appended to the entrypoint that was added.
I guess blanking values from the parent container is an exercise for the user. Just checking the bud behaviour to see if it matches before closing this.