C
C#3y ago
CrosRoad95

❔ .net 7, net 7.0.3 compatibility issues? in docker

I have following issue: i'm trying to run my application in docker, but it complains that i have no framework 7.0.0, meanwhile dotnet --list-runtimes says i have .net 7.0.3 ( see screenshots )
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
^ tried multiple combinations of build and runtime base layers, i noticed that only "aspnet" working but it breaks something else, how can i tell dotnet command to use proper version of dotnet?
10 Replies
CrosRoad95
CrosRoad95OP3y ago
net 6.0 worked fine with "runtime:6.0" base image, meanwhile aspnet:7.0 throws error: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /app/runtimes/linux-x64/native/NetModuleWrapper.so) because my application require some c++ to run
SpicyCatGames 🇵🇸
--list-sdks
SpicyCatGames 🇵🇸
Microsoft
Download .NET 7.0 (Linux, macOS, and Windows)
.NET 7.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
CrosRoad95
CrosRoad95OP3y ago
any other solutions? anyone? 😦
SpicyCatGames 🇵🇸
What? Why do you need solutions other than the one that works?
CrosRoad95
CrosRoad95OP3y ago
maybe my problem is just a bit specific, because i'm using native c++ and when i try this solution i'm getting segmentation fault, 139 status code
SpicyCatGames 🇵🇸
Installed sdk?
CrosRoad95
CrosRoad95OP3y ago
probably i will need to downgrade to net 6
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?