Allow appending commands to Dockerfile's CMD/ENTRYPOINT from Docker-Compose and Docker Run #44849
Labels
kind/feature
Functionality or other elements that the project doesn't currently have. Features are new and shiny
status/0-triage
Description
Please see docker/compose#3140.
Currently, putting anything in entrypoint for docker-compose.yml will result in the Dockerfile entries for both CMD and ENTRYPOINT being discarded.
The community consensus in the referenced issue is that we would like the ability to append commands before/after CMD or ENTRYPOINT inside docker-compose.yml. I believe the cleanest solution would be to expose the original CMD or ENTRYPOINT as variables for docker-compose to use.
I'm not 100% sure if a similar solution would slot nicely into Docker Run, given that different shells may use different variable syntax.
Perhaps some another arg,
--entrypoint-behavior="before"
(after
,overwrite
) would add the functionality without breaking existing flows.Is this the correct project to host this discussion?
The text was updated successfully, but these errors were encountered: