diff --git a/plugins/registry/subcommands.go b/plugins/registry/subcommands.go index 6a6493cb0..4e7fb2c8d 100644 --- a/plugins/registry/subcommands.go +++ b/plugins/registry/subcommands.go @@ -20,6 +20,16 @@ func CommandLogin(server string, username string, password string, passwordStdin password = strings.TrimSpace(string(stdin)) } + if server == "" { + return errors.New("Missing server argument") + } + if username == "" { + return errors.New("Missing username argument") + } + if password == "" { + return errors.New("Missing password argument") + } + command := []string{ common.DockerBin(), "login",