Basic auth for docker daemon
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
Hi,
have you thought about adding basic auth configuration to connect to docker daemon when you have nginx/another proxy before docker daemon with basic auth enabled ?
I use this to get it working in my own project:
tls_config = docker.tls.TLSConfig(verify=False)
c = docker.APIClient(base_url=DOCKER_API_URL, tls=tls_config)
c.auth = (API_USER, API_PASS)
self.client = docker.DockerClient()
self.client.api = c
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
Start by tracing the cited docker.tls.TLSConfig, docker.APIClient, and DockerClient entry points, including how c.auth is assigned in the workaround. Determine where proxy basic-auth credentials should be configured and document the expected connection behavior. Done means clients can connect through a basic-authenticated proxy without replacing the internal API client.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100