Skip to content

Commit ebb3d46

Browse files
committed
Fix ambiguous doc on credential store fallback
Signed-off-by: Rackoon <[email protected]>
1 parent ee43f57 commit ebb3d46

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/reference/commandline/login.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ store](#credential-stores). If you use Docker Desktop, credentials are
3030
automatically saved to the native keychain of your operating system. If you're
3131
not using Docker Desktop, you can configure the credential store in the Docker
3232
configuration file, which is located at `$HOME/.docker/config.json` on Linux or
33-
`%USERPROFILE%/.docker/config.json` on Windows. If you don't configure a
34-
credential store, Docker stores credentials in the `config.json` file in a
35-
base64-encoded format. This method is less secure than configuring and using a
36-
credential store.
33+
`%USERPROFILE%/.docker/config.json` on Windows.
3734

38-
`docker login` also supports [credential helpers](#credential-helpers) to help
35+
`docker login` supports [credential helpers](#credential-helpers) to help
3936
you handle credentials for specific registries.
4037

38+
If you don't configure a credential store and no credential helper is available,
39+
Docker stores credentials in the `config.json` file in a base64-encoded format.
40+
This method is less secure than configuring and using a credential store.
41+
4142
### Authentication methods
4243

4344
You can authenticate to a registry using a username and access token or

0 commit comments

Comments
 (0)