docker / docker/docker-py

Ability to disable version in URL...

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

There is a way to disable the URL from adding the version (having issues with portainer proxy and authorization)?
version is the only call using the versioned_api kwarg.

https://github.com/docker/docker-py/blob/a3652028b1ead708bd9191efb286f909ba6c2a49/docker/api/client.py#L256-270

But I can't see how to add this capability of pass it to methods

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 in docker/api/client.py around lines 256-270, where versioned_api is used for the version request. Trace how API methods construct URLs and determine where callers could control this behavior. Done means the relevant methods can disable version insertion without breaking existing versioned requests, with coverage for both URL forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api, backend
Issue type
Feature
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.