docker / docker/docker-py

Ansible / docker==7.0.0 docker compose up -> kwargs_from_env ssl_version

Open
#3,194 24 comments 37 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.2k
Forks
1.7k
Avg merge
13d 8h
Merged PRs (30d)
2

Description

Hello

Env :
Debian 12, python3.9.2, Docker version 24.0.7, build afdd53b

With fresh pip install docker==7.0.0


- name: deploy docker
  become: true
  community.docker.docker_compose:
    project_src: /opt/config/docker/
    files:
    - docker-compose.yml

My task is failing with this error :


TASK [deploy docker] *********************************************************************************************************
fatal: [install_nas]: FAILED! => {"changed": false, "msg": "Configuration error - kwargs_from_env() got an unexpected keyword argument 'ssl_version'"}

With the 6.1.3 it's ok.

It looks like if i run it manually (directly on the target host) with (pip) docker===7.0.0 it's working....

Cheers !

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

Reproduce the failure with Debian 12, Python 3.9.2, docker==7.0.0, and community.docker.docker_compose using the task shown; compare it with docker==6.1.3. Trace the docker_compose integration's kwargs_from_env call and the ssl_version argument. Done means the compose task runs successfully with docker 7.0.0.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.