I have a ASP.NET code, which contains various services in it.
I am new to ASP.NET.
I have docker-compose.yml in which I wrote code to run all services:
Some of it is:
version: '3.4'
services:
#abc.proxy:
# image: abc/nginx
# container_name: abc.proxy
# build:
# context: ./Nginx
abc.mq:
image: "rabbitmq:3.6-management"
container_name: abc.mq
abc.identityservice:
image: abc/identityservice
container_name: abc.identityservice
build:
context: ./abc.IdentityService
depends_on:
- abc.mq
Here ‘abc’ is my project name. I have several services like: abc.identityservice, abc.userservice, abc.contentservice, etc.
And when I run this, nearly all service gives the same error as below:
It says, “Can not find the container with name starting with abc.identityservice”
When I check the docker desktop, to check, it shows the service, but when it doesn’t run. It gives following error.
2024-06-19 13:04:41 It was not possible to find any compatible framework version
2024-06-19 13:04:41 The framework 'Microsoft.NETCore.App', version '6.0.0' was not found.
2024-06-19 13:04:41 - The following frameworks were found:
2024-06-19 13:04:41 3.1.32 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
2024-06-19 13:04:41
2024-06-19 13:04:41 You can resolve the problem by installing the specified framework and/or SDK.
2024-06-19 13:04:41
2024-06-19 13:04:41 The specified framework can be found at:
2024-06-19 13:04:41 - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=debian.10-x64
This identity Service uses version 3.1, but in error it shows me to download version 6.0.
Although some of my other services uses version 6.0.
When I check runtimes, it showed that I have both installed:
As I am new to it, I am not getting what’s the actual problem.
Please help.
Thanks in Advance.