Configured "HttpHeaders" are not sent by Docker daemon
Nobody has claimed this yet.
- Dominant language
- Markdown
- Stars
- 4.7k
- Forks
- 8.5k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 108
Description
Issue:
Configured "HttpHeaders" are not sent to the repository.
Documentation:
engine/reference/commandline/cli.md
Docker version
Docker version 19.03.13, build 4484c46d9d
Platform:
Ubuntu 18 & MacOS
Reproducing:
I am running an HTTPS proxy, which performs the SSL termination.
It receives the requests from the daemon and forwards an HTTPS request to the GCR project. The proxy logs all HTTP headers it receives.
-
Added
"HttpHeaders": { "MyHeader": "MyValue" }to ~/.docker/config.json, as documented -
Execute
docker --config ~/.docker pull https://my_proxy/my_image:tag -
Proxy logs all received log HTTP Headers. "MyHeader" is not found
INFO[8654] Client header "Connection": "close"
INFO[8654] Client header "User-Agent": "docker/19.03.12 go/go1.13.10 git-commit/48a66213fe kernel/4.19.76-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/19.03.12 \\(darwin\\))"
INFO[8654] Client header "Accept-Encoding": "gzip"```
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 with engine/reference/commandline/cli.md and review the documented HttpHeaders setting in ~/.docker/config.json. Reproduce the docker pull through the HTTPS proxy, then determine whether the documentation or Docker daemon behavior is incorrect; done means the issue has a confirmed resolution and the relevant documentation or component reference is updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100