Closed fazalWahid56 closed 6 years ago
I can't repro this on my own. We haven't done anything to make microsoft/aspnetcore:2.0 require authentication, so I'm assuming it's something in wrong in your Docker client or Docker Hub itself. Try pulling again. It may have been an intermittent error from Docker hub.
Closing as I don't think there is anything we can do, but feel free to continue the discussion here. You might have try checking Docker Hub's help page as well: https://hub.docker.com/help/
If you are having an issue with microsoft/aspnet, please open an issue on https://github.com/Microsoft/aspnet-docker. This repository is for microsoft/aspnetcore and microsoft/aspnetcore-build.
Steps to reproduce the issue
Command: docker build -t core .
docker file
FROM microsoft/aspnetcore-build AS build-env WORKDIR /WEBAPI
Copy csproj and restore as distinct layers
COPY *.csproj ./ RUN dotnet restore
Copy everything else and build
COPY . ./ RUN dotnet publish -c Release -o out
Build runtime image
FROM microsoft/aspnetcore:2.0 WORKDIR /WEBAPI COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "core.dll"]
Expected behavior
To build my core app into docker image
Actual behavior
it takes sometime downloading files but end up with this error
a107ec7d7f6a: Waiting 95a50a90fcb0: Waiting ab34d56b4e5c: Waiting 0b8ec05e19e4: Waiting unauthorized: authentication required
Additional information (e.g. issue happens only occasionally)
i tried this docker login -u dockerUserName -p password but error persists.
Output of
dotnet --info
Output of
docker info