testcontainers/testcontainers-rs

Allow providing a network alias

Open

#252 创建于 2021年1月29日

在 GitHub 查看
 (8 评论) (1 反应) (0 负责人)Rust (194 fork)auto 404
good first issuehelp wanted

仓库指标

Star
 (1,098 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南