Skip to content

Commit 0073a78

Browse files
committed
hide docker ID hint for non docker registry login
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
1 parent a54cf26 commit 0073a78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func ConfigureAuth(cli *DockerCli, flUser, flPassword, serverAddress string, isD
128128
authconfig.Username = strings.TrimSpace(authconfig.Username)
129129

130130
if flUser = strings.TrimSpace(flUser); flUser == "" {
131-
if isDefaultRegistry {
131+
if serverAddress == "https://index.docker.io/v1/" {
132132
// if this is a default registry (docker hub), then display the following message.
133133
fmt.Fprintln(cli.Out(), "Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.")
134134
}

0 commit comments

Comments
 (0)