testcontainers / testcontainers/testcontainers-python
Investigate what to do about "localnpipe" on windows
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
it has been some time. the urllib3/docker-py incompatibilities are fixed. the time of using named pipes on windows is here. the question is how to deal with them in this library. for now, i am suggesting a fix like:
class DockerContainer:
# ...
def get_container_host_ip(self) -> str:
# ...
# see https://github.com/testcontainers/testcontainers-python/issues/415
if host == "localnpipe" and "Windows" == system():
return "localhost"
# ...
but it really should get investigated in the short term.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 DockerContainer.get_container_host_ip 开始,结合 urllib3/docker-py 的兼容性背景,检查该库当前如何处理 Windows 上的主机值。在 Windows 上复现 localnpipe 情况;当受支持的行为和所需的更改得到清晰记录并通过验证时,调查即告完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- devtools, operating-systems
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100