You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dameng324
changed the title
Default Uri is wrong when dotnet publish
Default Uri is wrong when dotnet publish docker image to insecure registry
Sep 23, 2024
Today we will try to communicate to that registry on https (on port 443 if a port was not set, otherwise the explicitly-set port) inside the SDK container tools. If that fails (either because the registry isn't bound to HTTPS or for some other reason unrelated to allowing an insecure registry), then a piece of our middleware will try to communicate to that registry via the http protocol, but still on port 443. This is the specific error that you encountered and would like to fix? It seems reasonable to do so, but I would see if instead of hardcoding a port-80 on the http redirect we could simply un-set the port (if not explicit port was set by the user on the registry configuration).
Describe the bug
When publish dotnet app to an insecure docker registry, It throw an exception. Seems the port is wrong.
registry uri should be:
http://dockerhub.shengguanda.com:80
but the exception say it request:
http://dockerhub.shengguanda.com:443
To Reproduce
dotnet publish -p:PublishProfile=DefaultContainer --os linux --arch x64 -c Release -p:Version=0.0.0.1
Exceptions (if any)
Further technical details
dotnet --info
Rider 2024.2.5
The text was updated successfully, but these errors were encountered: