KestrelMock icon indicating copy to clipboard operation
KestrelMock copied to clipboard

docker run throws error

Open JasonRowe opened this issue 2 years ago • 1 comments

The following command fails

docker run -p 5006:5000 -e ASPNETCORE_URLS=http://*:5000 jasonrowe/kestrelmock

Cannot use file stream for [/app/KestrelMockServer.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/KestrelMockServer.runtimeconfig.json' was not found.
  • If this should be a framework-dependent app, add the '/app/KestrelMockServer.runtimeconfig.json' file and specify the appropriate framework.

JasonRowe avatar May 29 '24 19:05 JasonRowe

https://stackoverflow.com/questions/47285243/a-fatal-error-was-encountered-the-library-libhostpolicy-so-required

JasonRowe avatar May 29 '24 22:05 JasonRowe