Hello,
are you using the correct nuget package? I'm using the following package references:
<PackageReference Include="IBM.EntityFrameworkCore" Version="8.0.0.300" Condition="'$(os)' == 'Windows_NT'" />
<PackageReference Include="IBM.EntityFrameworkCore-lnx" Version="8.0.0.200" Condition="'$(os)' == 'UNIX'" />
Have you set the environment variables that are needed for DB2 to function in the docker file?
This is how the bottom of my dockerfile looks like:
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
# Environment variables for DB2 to function
ENV LD_LIBRARY_PATH=/app/clidriver/lib:/app/clidriver/lib/icc
ENV DB2_CLI_DRIVER_INSTALL_PATH=/app/clidriver
ENV PATH=$PATH:/app/clidriver/bin
Also you will need to install libxml2 into the docker image:
#install libxml2
RUN apt-get update && apt-get install -y libxml2-dev
------------------------------
Michael Volz
------------------------------