Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login to Azure container Registry Fails #298

Closed

Conversation

ageekymonk
Copy link
Contributor

Img cannot be used to login to azure container registry. This is due to Pinging registry without auth credentials causing it to fail. So removed pinging altogether.

PS: Ideally, the fix should be in reg the library but there is no release for nearly a year. Until we get that change in reg, adding a workaround here to fix this.

@ageekymonk ageekymonk changed the title ACR requires basic auth for ping as well Login to Azure container Registry Fails Aug 18, 2020
@@ -104,7 +104,7 @@ func (cmd *loginCommand) Run(args []string) error {
}

// Attempt to login to the registry.
r, err := registryapi.New(cliconfigtypes2dockerapitypes(authConfig), registryapi.Opt{Debug: debug})
r, err := registryapi.New(cliconfigtypes2dockerapitypes(authConfig), registryapi.Opt{Debug: debug, SkipPing: true})
if err != nil {
return fmt.Errorf("creating registry client failed: %v", err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fallback to ping on error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. will make the change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any update on this?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any news on this @ageekymonk ?

@techniumlabs techniumlabs closed this by deleting the head repository May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants