© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
12 replies
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
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
dotnet
command to use proper version of dotnet?
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ C# .NET Framework 4.8 Libraries usage in .NET 7.0
C#CC# / help
3y ago
❔ .NET 7 in Cpanel
C#CC# / help
3y ago
❔ WebAPI .NET 7.0 - Encrypt connectionstring in appsettings.json
C#CC# / help
3y ago
Net 5 -> Net 7
C#CC# / help
3y ago