DockerCLI/cli/command/registry
Sebastiaan van Stijn fcefe44bda
login: slightly cleanup warning about unencrypted store
- Add an empty line before the warning to separate it from the command's output
- Use the `/go/` redirect URL that we have available.
- Put quotes around the filename used for storage.
- Use present tense for the message, as the message is printed while saving.
- User "credentials" instead of "password" for consistency with "credentials-store"

Before:

    docker login myregistry.example.com
    Username: thajeztah
    Password:
    WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
    Configure a credential helper to remove this warning. See
    https://docs.docker.com/engine/reference/commandline/login/#credential-stores

    Login Succeeded

After:

    docker login myregistry.example.com
    Username: thajeztah
    Password:

    WARNING! Your credentials are stored unencrypted in '/root/.docker/config.json'.
    Configure a credential helper to remove this warning. See
    https://docs.docker.com/go/credential-store/

    Login Succeeded

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-18 18:22:13 +02:00
..
testdata search: deprecate "is-automated" filter and "IsAutomated" field 2023-08-09 12:11:05 +02:00
formatter_search.go golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
formatter_search_test.go golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
login.go login: slightly cleanup warning about unencrypted store 2024-07-18 18:22:13 +02:00
login_test.go fix: ctx cancellation on login prompt 2024-07-02 12:07:16 +02:00
logout.go use local ConvertToHostname() implementation 2024-06-14 00:25:21 +02:00
search.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00