testcontainers/testcontainers-rs

Support customize CMD for GenericImage

tisonkun opened this issue · 2 comments

I can see that we support customize entrypoint. Is there any blocker from supporting CMD also?

Hi there 👋

I think there is no blockers for this, and it's currently supported with ImageExt::with_cmd
In general, ImageExt was introduced to unify the interface and make overrides simpler for any Image. Documentation will be improved in the near future.

But we can consider extending GenericImage too.

I'm going to close the issue due to reasons described in the PR.

Currently, ImageExt provides this functionality and makes API more consistent.

Please, re-open if you feel there are missing arguments.

Thank you 🙏