testcontainers / testcontainers/testcontainers-python
DockerCompose start fails to start dockers, gives "got an unexpected keyword argument ssl_version" error in logs
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
Describe the bug
Tried running:
compose = DockerCompose(
dir_name, compose_file_name="docker-compose.yaml", pull=True, build=True
)
compose.start()
but nothing happened, checked logs with
compose.get_logs()
got "got an unexpected keyword argument ssl_version" in the logs, apparently with the newest python docker package, the ssl_version as a parameter is no longer supported - https://docker-py.readthedocs.io/en/stable/change-log.html
starting with version 7.0.0
To Reproduce
run the following with the docker 7.0.0 package
compose = DockerCompose(
dir_name, compose_file_name="docker-compose.yaml", pull=True, build=True
)
compose.start()
Runtime environment
Fedora Linux with python 3.9 and 24.0.5 docker version (7.0.0 pip package)
switching to 6.1.3 pip package seems to do the trick
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 DockerCompose.start() 路径以及与 docker 7.0.0 一起使用的依赖处理开始;将其行为与 docker 6.1.3 进行比较。复现报告中的命令,检查 compose.get_logs(),并在受支持的 Docker 软件包上成功启动且不出现 ssl_version 错误时,将该 issue 视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- devops, infrastructure
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100