Closed phil-harmoniq closed 6 years ago
I couldn't reproduce this using the steps you gave. Building the image passed just fine on my macBook. The error message seems to indicate there was a problem reading a .dll file. Are you volume mounting your local folder into the docker container?
I had the same issue with a similar setup. Docker version 17.12.0-ce, Mac OS X 10.13 using dotnet SDK 2.1.4.
I resolved my issue by using aspnetcore-build:2.0-jessie rather than aspnetcore-build:2.0
This issue was moved to Microsoft/msbuild#3085
Steps to reproduce the issue
(e.g. copy your Dockerfile or docker-compose.yml file here)
Expected behavior
Building my Docker image.
Actual behavior
Running
dotnet publish -c Release
in myDockerfile
results in the following during the restore step:Additional information (e.g. issue happens only occasionally)
I don't know whether this is an issue with the
aspnetcore-build
image or the Mac Docker client itself. If you know of a better repo to post this in, please let me know. For the record, thedotnet publish
command works fine when run natively (not in Docker).Output of
dotnet --info
Output of
docker info