-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Docker build stopped working #4512
Comments
Got something similar =(
Works to build locally but not in docker |
try to change from this version: 3.1-alpine3.10 to this version 3.1.100-alpine if you are using alpine |
That worked!! Such a weird problem though... Some of my colleagues did not need to change from 3.1-alpine to 3.1.100-alpine but at least 2 of them get the same problem. Thanks @luismanuelmontoro ! |
Hi folks, I got this problem here too. In my case that just happens when using macOS and Docker for Mac. While I tried the same but using a linux machine, then all that worked fine. Not even necessary to change the version. |
The same happened for me just now. With the same error message. The build worked a couple of days ago but its not working now. The Nuget package(s) exist and dotnet restore works outside of docker. |
Some issue with latest Dotnet Core Docker SDK release and AWS SDK Using 3.1.100-buster version of Dotnet Core SDK for build in Dockerfile fixed the issue |
Similar here. Builds on local Mac, but in Docker the same error message. Works with.. |
cc @mthalman |
Can someone provide a current repro for this? I'm unable to get my own repro on either my Windows or Mac machine. Please provide the following:
|
Running
made it start working again for me. I'm not sure what the corresponding docker-command is. |
Any updates on this issue? Following
Following is from
You can see that both my local setup & docker have same version of
I even tried
Thanks. |
I just tried to build docker image on macos from the following: FROM mcr.microsoft.com/dotnet/core/sdk:3.1.300-alpine as builder
WORKDIR /app
COPY *.csproj .
and get an error:
Building locally on macos succeeds. Any clues? |
I was seeing this error consistently with
I removed the
|
i faced the same issue with |
Can you share the commands you have in your Dockerfile? |
I have just encountered this same problem when trying to build an image using Device details:
I'm executing
I tried removing the NOTE: I have no errors when building the image using my Surface Pro8 (Windows). |
I just came here with apparently the same problem, but happening both on Windows and Linux at the same time. I couldn't really believe that this would just start happening at random. Turned out we had a change of the context directory of our |
@TripleEmcoder Thanks for the tip, this was my problem. I had done some shuffling of projects and misplaced a |
Docker build stopped working
Hello, i have a dockerfile than build correctly, but 5 days ago without any change in code i´ll stop building.
Dokcer build response me that:
Restore completed in 159.68 ms for /app/s3-api/gutenberg-s3.csproj.
/usr/share/dotnet/sdk/3.1.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1064: Package AWSSDK.S3, version 3.3.110.35 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/app/s3-api/gutenberg-s3.csproj]
The command '/bin/sh -c dotnet publish gutenberg-s3.csproj -c Release -o out' returned a non-zero code: 1
Y try to locate this package on nugget and it´s fine. I actualize librarys and still crashing.
Can you help me?
The text was updated successfully, but these errors were encountered: