Home > Articles > Details

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".


Please Login to see the rest of the answer
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 :)


If you log in, you will be notified when someone leaves a comment.

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


© 2022 - ErnesTech - Privacy