Commit 84da157
committed
convert to hostname if needed when trying to authenticate
Used for the push using Docker's cli.
See https://github.com/docker/cli/blob/23446275646041f9b598d64c51be24d5d0e49376/cli/config/credentials/file_store.go#L32-L47
(current used revision) to have more information about this fix.
By example if you are logged on multiple registries, you can
have something like that in your `config.json`.
{
"auths": {
"https://index.docker.io/v1/": {},
"quay.io": {},
}
}
This fix allows to handle auth configurations with and without
`http[s]://` prefix.
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>1 parent 75ab1e3 commit 84da157
2 files changed
+11
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
294 | 299 | | |
295 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
296 | 306 | | |
297 | 307 | | |
298 | 308 | | |
| |||
0 commit comments