C
C#2y 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
CrosRoad95OP2y 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
SpicyCatGames2y ago
--list-sdks
SpicyCatGames
SpicyCatGames2y ago
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
CrosRoad95OP2y ago
any other solutions? anyone? 😦
SpicyCatGames
SpicyCatGames2y ago
What? Why do you need solutions other than the one that works?
SpicyCatGames
SpicyCatGames2y ago
CrosRoad95
CrosRoad95OP2y 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
SpicyCatGames2y ago
Installed sdk?
CrosRoad95
CrosRoad95OP2y ago
probably i will need to downgrade to net 6
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server