testcontainers / testcontainers/testcontainers-python

DockerCompose start fails to start dockers, gives "got an unexpected keyword argument ssl_version" error in logs

Open
#409 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug 👀 requires attention 📦 package: compose
Dominant language
Python
Stars
2.3k
Forks
386
Avg merge
4h 40m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DockerCompose.start() path and the dependency handling used with docker 7.0.0; compare its behavior with docker 6.1.3. Reproduce the reported command, inspect compose.get_logs(), and consider the issue done when startup succeeds without the ssl_version error on the supported Docker package.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.