Docker on Windows Error "A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found"

Question: How do you solve Docker on Windows Error when you are trying to run AspNet Application on Windows? The error says "A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found".

Answer: The error is due to the Published Application targetting Windows 64 or 32 bit Hosting Enviroment but your Docker Engine is running Docker Containers in a Linux Enviroment. This is will not work, you need to make sure that your Application you have just published is targeting Linux Environment or change the Docker Engine to run Docker Containers in a Windows Enviroment (Platform.).

 

I hope this helps :)


Edit this Article
Docker Linux SubSystem Docker AspNet 6 Docker published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy