how to override container **Entrypoint** and **Cmd** #572
-
I am trying to override Entrypoint and Cmd of given docker image. While doing so: on CLI it works and container starts, I can see app logs, though when I try to construct in code using TestContainer, I see error. I am sure I am constructing it wrong, can someone suggest what I am doing wrong Works OK
But for equivalent Code
I see below error
docker inspect gives below config in container
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's not equivalent. You use .WithEntrypoint("/bin/sh", "-c")
.WithCommand("./integrationFolder/EventIntegration") |
Beta Was this translation helpful? Give feedback.
That's not equivalent. You use
-c './integrationFolder/EventIntegration'
asdocker run
argument (even if I don't understand how that results in the showndocker inspect
result). Try: