testcontainers/testcontainers-rs

Proposal to add org.testcontainers=true label for ecosystem consistency

Open

#926 创建于 2026年3月19日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Rust (194 fork)auto 404
enhancementgood first issue

仓库指标

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

描述

I would like to propose adding the org.testcontainers=true label by default to all containers started by the Rust implementation.

Currently, I manage Testcontainers using OnceCell in my Rust project. Occasionally, the cleanup process fails, leaving orphaned containers that I have to clean up manually.

docker kill $(docker ps -q --filter "label=org.testcontainers.managed-by=testcontainers")

While I can currently filter them using label=org.testcontainers.managed-by=testcontainers, other language implementations (such as Java and Go) typically use label=org.testcontainers=true for this purpose.

Adding this standard label would align the Rust version with the broader Testcontainers ecosystem. Moreover, since many AI agents and cleanup tools commonly suggest filtering by label=org.testcontainers=true, supporting this label would make the Rust implementation more intuitive and easier to manage across different environments.

贡献者指南