You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: propagate ring/aws-lc-rs feature flags to bollard (#781)
In order for consumers to be able to switch between `ring` and
`aws-lc-rs` cleanly without `testcontainers_rs` bringing in the wrong
library, add feature flags that are propagated through to `bollard` to
switch between the two ssl providers.
---------
Co-authored-by: kaitlin-smith <kaitlin.smith@anaplan.com>
Copy file name to clipboardExpand all lines: docs/features/configuration.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,13 @@ Configuration is fetched in the following order:
31
31
1.`DOCKER_AUTH_CONFIG` environment variable, unmarshalling the string value from its JSON representation and using it as the Docker config.
32
32
2.`DOCKER_CONFIG` environment variable, as an alternative path to the directory containing Docker `config.json` file.
33
33
3. else it will load the default Docker config file, which lives in the user's home, e.g. `~/.docker/config.json`.
34
+
35
+
## bollard, rustls and SSL Cryptography providers
36
+
`testcontainers` uses [`bollard`](https://docs.rs/bollard/latest/bollard/) to interact with the Docker API.
37
+
38
+
`bollard` in turn has options provided by `rustls` to configure its SSL cryptography providers.
39
+
40
+
The `testcontainers` feature flags to control this are as follows:
41
+
*`ring` - use `rustls` with `ring` as the cryptography provider (default)
42
+
*`aws-lc-rs` - use `rustls` with `aws-lc-rs` as the cryptography provider
43
+
*`ssl` - use `rustls` with a custom cryptography provider configuration - see [bollard](https://docs.rs/bollard/latest/bollard/#feature-flags) and [rustls](https://docs.rs/rustls/latest/rustls/#cryptography-providers) documentation for more.
0 commit comments