Skip to content

Commit

Permalink
Merge pull request #226 from astronomer/fix-issue-with-registry-auth-…
Browse files Browse the repository at this point in the history
…windows

Rename password to token
  • Loading branch information
schnie committed May 28, 2019
2 parents bdcc09a + 09cd8a6 commit f0ae524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/docker.go
Expand Up @@ -46,7 +46,7 @@ func Exec(args ...string) error {
}

// ExecLogin executes a docker login similar to docker login command
func ExecLogin(serverAddress, username, password string) error {
func ExecLogin(serverAddress, username, token string) error {
var response registrytypes.AuthenticateOKBody
ctx := context.Background()

Expand All @@ -61,7 +61,7 @@ func ExecLogin(serverAddress, username, password string) error {
authConfig := &types.AuthConfig{
ServerAddress: serverAddress,
Username: username,
Password: password,
RegistryToken: token,
}

response, _ = cli.RegistryLogin(ctx, *authConfig)
Expand Down

0 comments on commit f0ae524

Please sign in to comment.