After carrying out the instructions to create the Dockerfile in the section "To use the manually published app within a Docker container," I can see the image using docker images but when I try to run it I get the following:
~/dotnet-docker/samples/aspnetapp/aspnetapp$ docker run -it --rm --name myaspnetapp_ex myaspnetapp
Cannot use file stream for [/app/aspnetapp.deps.json]: No such file or directory
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app/'.
Failed to run as a self-contained app.
- The application was run as a self-contained app because '/app/aspnetapp.runtimeconfig.json' was not found.
- If this should be a framework-dependent app, add the '/app/aspnetapp.runtimeconfig.json' file and specify the appropriate framework.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
After carrying out the instructions to create the Dockerfile in the section "To use the manually published app within a Docker container," I can see the image using
docker imagesbut when I try to run it I get the following:~/dotnet-docker/samples/aspnetapp/aspnetapp$ docker run -it --rm --name myaspnetapp_ex myaspnetappDocument Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.