testcontainers / testcontainers/testcontainers-python
Bug: Error while fetching server API version
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
Describe the bug
The library is raising a DockerException when trying to fetch the server version. I saw multiple older issues related to this issue, but it's now repeating.
To Reproduce
def create_container():
container = PostgresContainer("pgvector/pgvector:pg17", driver=None)
container.start()
Runtime environment
- M1 Pro
- Python 3.12.8
- Docker Desktop 4.37.2 (179585)
- Testcontainers 4.9.0 installed via uv
Results of running docker context ls:
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
desktop-linux * Docker Desktop unix:///Users/naamanhirschfeld/.docker/run/docker.sock
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
报告中没有指出源文件或测试。首先在文档所述的 Docker 上下文中使用 PostgresContainer("pgvector/pgvector:pg17", driver=None) 重现故障,然后跟踪触发 DockerException 的服务器 API 版本获取过程。当容器能够在此环境中成功启动且不出现该错误,并且该行为由回归测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- devops, infrastructure
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 38/100