testcontainers/testcontainers-rs

Allow providing a network alias

Open

#252 aperta il 29 gen 2021

Vedi su GitHub
 (8 commenti) (1 reazione) (0 assegnatari)Rust (194 fork)auto 404
good first issuehelp wanted

Metriche repository

Star
 (1098 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The argument --network-alias may be used to influence the name of container in the docker network. Otherwise the container is only available by its ID or name.

It would be useful, if you want to orchestrate a few test containers, which need to communicate with each other, to allow providing the network alias, in order to have predictable DNS names. Compared to using the ID or name (which might clash).

Guida contributor