Bug 2099555 - docker-compose package (1.29.2) on Fedora 36 needs to use a newer docker-py version
Summary: docker-compose package (1.29.2) on Fedora 36 needs to use a newer docker-py v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-compose
Version: 36
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: Tomas Tomecek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-21 08:51 UTC by Samael
Modified: 2022-09-19 21:53 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-30 01:17:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Samael 2022-06-21 08:51:22 UTC
using docker-compose from the Fedora 36 repo:

docker-compose version 1.29.2, build unknown
docker-py version: 4.2.2
CPython version: 3.10.5
OpenSSL version: OpenSSL 3.0.3 3 May 2022

it turns out that it should be using docker-py >=4.4.0 for use_ssh_client but is actually broken because it's using 4.2.2

See the following error:

```
$ docker-compose up -d
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/usr/lib/python3.10/site-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/usr/lib/python3.10/site-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/usr/lib/python3.10/site-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/usr/lib/python3.10/site-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
TypeError: APIClient.__init__() got an unexpected keyword argument 'use_ssh_client'
```

See related docker-compose issue on github: https://github.com/docker/compose/issues/7970

Comment 1 Tomas Tomecek 2022-06-21 12:05:24 UTC
I'm going to update python-docker today.

Comment 2 Fedora Update System 2022-06-21 15:53:38 UTC
FEDORA-2022-00eaf8fdc8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-00eaf8fdc8

Comment 3 Fedora Update System 2022-06-22 02:01:40 UTC
FEDORA-2022-00eaf8fdc8 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-00eaf8fdc8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-00eaf8fdc8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-06-30 01:17:47 UTC
FEDORA-2022-00eaf8fdc8 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.