KestrelMock
KestrelMock copied to clipboard
docker run throws error
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.
https://stackoverflow.com/questions/47285243/a-fatal-error-was-encountered-the-library-libhostpolicy-so-required