testcontainers/testcontainers-rs

Allow providing a network alias

Open

#252 opened on Jan 29, 2021

View on GitHub
 (8 comments) (1 reaction) (0 assignees)Rust (194 forks)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (1,098 stars)
PR merge metrics
 (PR metrics pending)

Description

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).

Contributor guide