Docker Community Forums

Share and learn in the Docker community.

Loading Libraries using .NET Core and Docker

(Daniel Amsellem) #1

I’ve been having some difficulties around a specific issue and I was wondering if you could take a minute to look at it.

We are Dockerizing a .net core 2.1 app. This app loads dynamic libraries written in cpp , dlls, and uses them using .net core. When using it as a regular app both on Linux and on Windows it works fine. In order to load these dlls we need to use a dll called kernel32 for Windows and libdl using Linux.

Trying to use Docker for Windows containers and Linux containers keeps giving me an error that it can’t find neither libdl on Linux containers or kernel32 on Windows containers.

Where does Docker try to load dlls from? And shared libs as well for Linux?

Could it be a mount problem?

Thanks a lot