Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Getting Error while running the first Docker Compose Command#19

Unanswered
dhruv050992 asked this question inQ&A
Discussion options

Getting below error while running
"docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d" command

Error
=> ERROR [build 5/8] RUN dotnet restore "Services/Catalog/Catalog.API/Ca 2.8s

[build 5/8] RUN dotnet restore "Services/Catalog/Catalog.API/Catalog.API.csproj":
#13 1.549 Determining projects to restore...
#13 2.350 /usr/share/dotnet/sdk/5.0.202/NuGet.targets(131,5): error : Unable to load the service index for sourcehttps://api.nuget.org/v3/index.json. [/src/Services/Catalog/Catalog.API/Catalog.API.csproj]
#13 2.350 /usr/share/dotnet/sdk/5.0.202/NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [/src/Services/Catalog/Catalog.API/Catalog.API.csproj]
#13 2.350 /usr/share/dotnet/sdk/5.0.202/NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: PartialChain [/src/Services/Catalog/Catalog.API/Catalog.API.csproj]


ERROR: Service 'catalog.api' failed to build

You must be logged in to vote

Replies: 1 comment 5 replies

Comment options

It seems related like microsoft base images.
Could you please try with changing FROM parts into Dockerfile of Catalog.API as below images and try again. I will also try from my part.

FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
...
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build

You must be logged in to vote
5 replies
@dhruv050992
Comment options

I have tried this, It's not working.

Actually, I am working in proxy environment, Its blocking the content to be downloaded from Nuget.

@mehmetozkaya
Comment options

yes that would be problem, so that means, in that environment you can't connect Nuget. We should fix it first.

@dhruv050992
Comment options

I have tried many things but no success. Please can you help me?

@dhruv050992
Comment options

I am able to use Nuget for my windows but whenever it connects to docker, I am not able to use Nuget.

@mehmetozkaya
Comment options

Actually I can't find the solution yet, let me investigate further and try to find a proper solution.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@dhruv050992@mehmetozkaya

[8]ページ先頭

©2009-2025 Movatter.jp