Skip to content

Docker Socket API broken after Python update #1582

Open
@felixlabrot

Description

@felixlabrot

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

  1. run Photon OS with all updates installed
  2. enable and start Docker
  3. install package python3-pip
  4. run pip install docker==7.0.0 (with latest version 7.1.0 the library is broken as well)
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions