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

Insecure registries publish failed. #588

Closed
dameng324 opened this issue Aug 21, 2024 · 1 comment
Closed

Insecure registries publish failed. #588

dameng324 opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
Area: Registries Tasks/Issues around communicating with asset registries

Comments

@dameng324
Copy link

My docker daemon config:

  "insecure-registries": [
    "dockerhub.shengguanda.com"
  ],

When I publish with command:

dotnet publish -p:PublishProfile=DefaultContainer --os linux --arch x64 -c Release 

output:

C:\Program Files\dotnet\sdk\8.0.401\Containers\build\Microsoft.NET.Build.Containers.targets(242,5): error : Containerize: error CONTAINER004: CONTAINER1014: Manifest pull fai
led. [C:\Workspace\gitlab\IRS\src\IRS.Algo.Chasing\IRS.AlgoRunner.Chasing\IRS.AlgoRunner.Chasing.csproj]
C:\Program Files\dotnet\sdk\8.0.401\Containers\build\Microsoft.NET.Build.Containers.targets(242,5): error : URI: http://dockerhub.shengguanda.com:443/v2/sgd/chasing-algo/blob 
s/sha256:d360433c75c620bd5772d21b267525b21dd5a481b27bf88c11847dcb97245cdc [C:\Workspace\gitlab\IRS\src\IRS.Algo.Chasing\IRS.AlgoRunner.Chasing\IRS.AlgoRunner.Chasing.csproj]  
C:\Program Files\dotnet\sdk\8.0.401\Containers\build\Microsoft.NET.Build.Containers.targets(242,5): error :    at Microsoft.NET.Build.Containers.DefaultBlobOperations.LogAndT 
hrowContainerHttpException[T](HttpResponseMessage response, CancellationToken cancellationToken) in /_/src/Containers/Microsoft.NET.Build.Containers/Registry/DefaultBlobOpera 
tions.cs:line 79 [C:\Workspace\gitlab\IRS\src\IRS.Algo.Chasing\IRS.AlgoRunner.Chasing\IRS.AlgoRunner.Chasing.csproj]

URI: http://dockerhub.shengguanda.com:443/v2/sgd/chasing-algo/blob s/sha256:d360433c75c620bd5772d21b267525b21dd5a481b27bf88c11847dcb97245cdc the prefix http is right, but the port 443 is wrong, It should be 80.

how to set the right port?

@dameng324
Copy link
Author

Fixed in dotnet/sdk#44050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Registries Tasks/Issues around communicating with asset registries
Projects
None yet
Development

No branches or pull requests

2 participants