mirror of https://github.com/docker/cli.git
docs: rephrase section on credential stores for docker login
Signed-off-by: David Karlsson <david.karlsson@docker.com>
(cherry picked from commit 9828575314
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
380eb72940
commit
1447974b83
|
@ -240,7 +240,7 @@ credential store. When this property is set, `docker login` will attempt to
|
||||||
store credentials in the binary specified by `docker-credential-<value>` which
|
store credentials in the binary specified by `docker-credential-<value>` which
|
||||||
is visible on `$PATH`. If this property is not set, credentials will be stored
|
is visible on `$PATH`. If this property is not set, credentials will be stored
|
||||||
in the `auths` property of the config. For more information, see the
|
in the `auths` property of the config. For more information, see the
|
||||||
[**Credentials store** section in the `docker login` documentation](login.md#credentials-store)
|
[**Credential stores** section in the `docker login` documentation](login.md#credential-stores)
|
||||||
|
|
||||||
The property `credHelpers` specifies a set of credential helpers to use
|
The property `credHelpers` specifies a set of credential helpers to use
|
||||||
preferentially over `credsStore` or `auths` when storing and retrieving
|
preferentially over `credsStore` or `auths` when storing and retrieving
|
||||||
|
|
|
@ -56,27 +56,28 @@ credentials. When you log in, the command stores credentials in
|
||||||
`$HOME/.docker/config.json` on Linux or `%USERPROFILE%/.docker/config.json` on
|
`$HOME/.docker/config.json` on Linux or `%USERPROFILE%/.docker/config.json` on
|
||||||
Windows, via the procedure described below.
|
Windows, via the procedure described below.
|
||||||
|
|
||||||
### Credentials store
|
### Credential stores
|
||||||
|
|
||||||
The Docker Engine can keep user credentials in an external credentials store,
|
The Docker Engine can keep user credentials in an external credential store,
|
||||||
such as the native keychain of the operating system. Using an external store
|
such as the native keychain of the operating system. Using an external store
|
||||||
is more secure than storing credentials in the Docker configuration file.
|
is more secure than storing credentials in the Docker configuration file.
|
||||||
|
|
||||||
To use a credentials store, you need an external helper program to interact
|
To use a credential store, you need an external helper program to interact
|
||||||
with a specific keychain or external store. Docker requires the helper
|
with a specific keychain or external store. Docker requires the helper
|
||||||
program to be in the client's host `$PATH`.
|
program to be in the client's host `$PATH`.
|
||||||
|
|
||||||
This is the list of currently available credentials helpers and where
|
You can download the helpers from the `docker-credential-helpers`
|
||||||
you can download them from:
|
[releases page](https://github.com/docker/docker-credential-helpers/releases).
|
||||||
|
Helpers are available for the following credential stores:
|
||||||
|
|
||||||
- D-Bus Secret Service: https://github.com/docker/docker-credential-helpers/releases
|
- D-Bus Secret Service
|
||||||
- Apple macOS keychain: https://github.com/docker/docker-credential-helpers/releases
|
- Apple macOS keychain
|
||||||
- Microsoft Windows Credential Manager: https://github.com/docker/docker-credential-helpers/releases
|
- Microsoft Windows Credential Manager
|
||||||
- [pass](https://www.passwordstore.org/): https://github.com/docker/docker-credential-helpers/releases
|
- [pass](https://www.passwordstore.org/)
|
||||||
|
|
||||||
#### Configure the credentials store
|
#### Configure the credential store
|
||||||
|
|
||||||
You need to specify the credentials store in `$HOME/.docker/config.json`
|
You need to specify the credential store in `$HOME/.docker/config.json`
|
||||||
to tell the docker engine to use it. The value of the config property should be
|
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-`).
|
the suffix of the program to use (i.e. everything after `docker-credential-`).
|
||||||
For example, to use `docker-credential-osxkeychain`:
|
For example, to use `docker-credential-osxkeychain`:
|
||||||
|
|
Loading…
Reference in New Issue