-
Notifications
You must be signed in to change notification settings - Fork 39
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
Having trouble with DockerHub auth #483
Comments
This should work better with preview 7. You can use And when using the cc @baronfel |
Rich and I spoke about this a bit offline - yes the reuse of docker credentials will get better, but the real issue is that he didn't include his user namespace in the image repository. We didn't doc this explicitly in the configuration docs for ContainerRepository, and the error message doesn't help guide users to a resolution. |
I tried Encountered a SocketException with message "Broken pipe". Pausing before retry. Which ended in:
I'll try again later with the suggestion from @tmds. |
Working now! My test: $ docker login -u richlander
$ dotnet publish /p:PublishProfile=DefaultContainer /p:ContainerBaseImage=mcr.microsoft.com/dotnet/aspnet:8.0-preview-jammy-chiseled /p:ContainerRegistry=docker.io /p:ContainerRepository=richlander/foo Thanks for the help! For anyone looking at this later, I use Docker PATs for my password since I have 2FA enabled. Works great. |
This is what I'm doing. Is the
credsStore
the problem? This is macOS. However, I'm having similar troubles with Linux which have the actual key listed.I used these docs to help me: https://github.com/dotnet/sdk-container-builds/blob/main/docs/RegistryAuthentication.md
On Linux, my
config.json
looks like this:The text was updated successfully, but these errors were encountered: