SumoLogic/sumologic-collector-docker

Likely accidental use of ENTRYPOINT

coderanger opened this issue · 2 comments

The included run.sh is more of a CMD than an ENTRYPOINT given that it doesn't take options or function as a shell.

Hi @coderanger thank you for reporting this issue. Do you have any recommendation on how this can be addressed?

Rather than ENTRYPOINT ["/bin/bash", "/run.sh"], use CMD ["/bin/bash", "/run.sh"]. That sets the default command, rather than the default entrypoint :) They seem similar but work differently inside the container tools.