You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dotnet published a basic .NetCore 2.0 web-application.
Put output into a empty directory inside docker image using "FROM microsoft/dotnet:2.0-runtime"
Execute dotnet DataStorage.dll in docker container
Expected behavior
Application starts and listens on the specified port
Actual behavior
An assembly specified in the application dependencies manifest (DataStorage.deps.json) was not found:
package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1'
path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll'
This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml
Additional information
If I change the dockerfile to use "FROM microsoft/dotnet:2.0-sdk" everything works as expected.
Output of docker version
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:23:31 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:19:04 2017
OS/Arch: linux/amd64
Experimental: false
The ASP.NET Core runtime store is not included in the "runtime only" image. You need to use microsoft/aspnetcore:2.0.0 instead, or opt out of the runtime store trimming.
Thank you very much I used PublishWithAspNetCoreTargetManifest and the problem is solved while having a smaller docker image than microsoft/aspnetcore:2.0.0.
Steps to reproduce the issue
Expected behavior
Application starts and listens on the specified port
Actual behavior
Additional information
If I change the dockerfile to use "FROM microsoft/dotnet:2.0-sdk" everything works as expected.
Output of
docker version
Output of
docker info
The text was updated successfully, but these errors were encountered: