-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix login documentation layout #1414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,8 @@ you can download them from: | |
| - Microsoft Windows Credential Manager: https://github.com/docker/docker-credential-helpers/releases | ||
| - [pass](https://www.passwordstore.org/): https://github.com/docker/docker-credential-helpers/releases | ||
|
|
||
| #### Configure the credentials store | ||
|
|
||
| You need to specify the credentials store in `$HOME/.docker/config.json` | ||
| to tell the docker engine to use it. The value of the config property should be | ||
| the suffix of the program to use (i.e. everything after `docker-credential-`). | ||
|
|
@@ -99,7 +101,7 @@ For example, to use `docker-credential-osxkeychain`: | |
| If you are currently logged in, run `docker logout` to remove | ||
| the credentials from the file and run `docker login` again. | ||
|
|
||
| ### Default behavior | ||
| #### Default behavior | ||
|
|
||
| By default, Docker looks for the native binary on each of the platforms, i.e. | ||
| "osxkeychain" on macOS, "wincred" on windows, and "pass" on Linux. A special | ||
|
|
@@ -108,7 +110,7 @@ it cannot find the "pass" binary. If none of these binaries are present, it | |
| stores the credentials (i.e. password) in base64 encoding in the config files | ||
| described above. | ||
|
|
||
| ### Credential helper protocol | ||
| #### Credential helper protocol | ||
|
|
||
| Credential helpers can be any program or script that follows a very simple protocol. | ||
| This protocol is heavily inspired by Git, but it differs in the information shared. | ||
|
|
@@ -162,7 +164,7 @@ designated programs to handle credentials for *specific registries*. The default | |
| credential store (`credsStore` or the config file itself) will not be used for | ||
| operations concerning credentials of the specified registries. | ||
|
|
||
| ### Logging out | ||
| #### Configure credential helpers | ||
|
|
||
| If you are currently logged in, run `docker logout` to remove | ||
| the credentials from the default store. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're interested in making some additional changes (could be in a follow-up); I think we should include a link somewhere to the section describing where the cli configuration file is; https://github.com/docker/cli/blob/master/docs/reference/commandline/cli.md#configuration-files)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll probably do that in a follow-up PR soon. |
||
|
|
@@ -182,3 +184,7 @@ For example: | |
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Related commands | ||
|
|
||
| * [logout](logout.md) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,7 @@ Options: | |
| ```bash | ||
| $ docker logout localhost:8080 | ||
| ``` | ||
|
|
||
| ## Related commands | ||
|
|
||
| * [login](login.md) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch; would be worth to add a "Related commands" at the end of this file, to link to
logout(similar to https://github.com/docker/cli/blob/master/docs/reference/commandline/plugin_create.md#related-commands)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done