docker / docker/docker-py

Breaks with requests 2.33.0: 404 Client Error: Not Found for url: http+docker://localhost/v1.51/containers/create

Open
#3,392 3 comments 0 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

I recently upgraded to the latest requests version since there was a known vulnerability in the one I was using.

    'docker==7.1.0',
    'requests==2.33.0',  # was originally 2.32.5 and that worked fine

Here is a snippet of the error message I'm seeing.

'404 Client Error: Not Found for url: http+docker://localhost/v1.51/containers/create'

What's particularly weird is that locally I cannot reproduce this issue. I am only able to create reproduce this in AWS CodeBuild. Not sure what's up there. The only change from the working execution to this one is the version bump 😢

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 by reproducing the failure in AWS CodeBuild with docker==7.1.0 and requests==2.33.0, then compare it with requests==2.32.5. Investigate the Docker Engine API container-creation request at the reported v1.51 endpoint; done means container creation succeeds in the affected environment without the 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.