Docker Socket API broken after Python update
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Since the latest update to some Python packages it is not possible anymore to access the Docker API via unix://var/run/docker.sock. All connection attempts fail with Not supported URL scheme http+docker universally on all Photon OS servers. This entirely breaks monitoring with all Python based monitoring solutions (like Check_MK) and likely much more.
The bug is in one of those packages:
python3-jinja2-3.1.2-5.ph5.noarch
python3-requests-2.28.1-6.ph5.noarch
python3-xml-3.11.9-7.ph5.x86_64
python3-libs-3.11.9-7.ph5.x86_64
python3-3.11.9-7.ph5.x86_64
expat-2.6.0-6.ph5.x86_64
expat-libs-2.6.0-6.ph5.x86_64
Reproduction steps
- run Photon OS with all updates installed
- enable and start Docker
- install package
python3-pip - run
pip install docker==7.0.0(with latest version 7.1.0 the library is broken as well) - run this script: https://gist.github.com/felixlabrot/c96a6d2018b7ee7dcb004a032f5c323a
Expected behavior
It should be possible to connect to the Docker API like it was before.
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure on an updated Photon OS server by following the listed Docker and pip installation steps, then run the linked reproduction script. Compare the listed Python package versions and Docker library versions to identify the compatibility break. Done means the script can again connect through unix://var/run/docker.sock without the http+docker scheme error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100