testcontainers / testcontainers-rs

A library for integration-testing against docker containers from within Rust.
https://rust.testcontainers.org
Apache License 2.0
704 stars 138 forks source link

Support for passing platform #718

Open poplexity opened 1 month ago

poplexity commented 1 month ago

Similar to https://github.com/testcontainers/testcontainers-rs/issues/500 it would be great to have feature parity with the CLI. The suggested workaround does work but is quite inconvenient, we have migrated one project to use bollard directly such that we could specify the platform when launching the container.

shelajev commented 1 month ago

After looking at the other implementations, this could perhaps be a more general request. We could expose a lower level API, similar to withCreateCmdModifier in testcontainers-java, and that could be used to configure various options: