I have a project A. I’m trying to request with the following line of code: return await _httpClient.PostAsync(requestUri, content); The requestUri I call is something simple: http://localhost:3036/api. This URL is from a docker container (project B). When I run this program (project A) running locally on my machine debugging in visual studio or in IIS, ..
I have built an small CRUD application using .Net 5 with React in the front end and SQLite for the database. The app is working fine locally and all connections are correct both to the API and to the database. I have been trying to put the whole application in a docker container. This also ..
Is there a docker image available with both dotnet sdk2 and sdk 3.1 I tried installing dotnet sdk2 inside sdk3.1 dotnet docker image and vice versa, but nothing worked. My requirement is I wanted to have a docker image with both dotnet2 & 3.1 sdk Source: Docker..
So I am struggling with the understanding of how backend and frontend are supposed to be deployed. Frontend So for the frontend, which I think is correctly configured, I have the following DockerFile FROM node:lts-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build # production stage ..
I have a .net core program that will run from docker. This is the Dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:3.1 COPY / App/ WORKDIR /App ENTRYPOINT ["dotnet", "ParentConsole.dll"] This program will run a separate program as a process. Example: Process.Start("childconsole.exe","") However, that process always throw error with exit code: -1073741515 The same program (ParentConsole) can run fine as ..
I’m attempting to install .NET and Azure Functions inside a Docker container, in order to run an Azure Function. AFAIK, I can’t use the base mcr.microsoft.com/dotnet/core/sdk image, as it’s not yet compatible with M1 Macbooks (based on Running .Net Core based Azure Function in Docker Container on Apple Silicon and some more searching). When I ..
I am interested in know if currently exists a project/library/GitHub repo which that allows Running SQL Server Unit Tests in .NET Core Projects via Docker. I have discarded using other libraries as tsqlt because they do not meet the requirements, the use of Docker/Container is a key factor. Source: Docker..
In this article I’ve found a way to speed up docker build command https://www.softwaredeveloper.blog/optimize-building-net-core-docker-image This command caches nuget dependencies RUN dotnet publish -c Release -o out I just can’t catch what does out mean ,it should be a path , but running such command fails , because COPY –from=publish out . does not work.How can ..
I’m having a problem with the docker container. I’m trying to learn microservice architecture and unfortunately having a problem with docker. I made a research about how to solve that but non of the solutions helped me. Here is my docker-compose.ovverride.yml: version: ‘3.4’ services: sourcingdb: container_name: sourcingdb restart: always volumes: – ./data:/data/db ports: – "27017:27017" ..
I have a .NET Core application running in docker that connect to MySQL database on docker, when MySQL docker container run with docker run command : C:dev>docker run -p 3310:3306 –name=mysql1 -e MYSQL_ROOT_PASSWORD=pw -d mysql:5.6 C:dev>docker run -p 3311:3306 –name=mysql2 -e MYSQL_ROOT_PASSWORD=pw -d mysql:5.6 I don’t get the error, but when I try using docker-compose ..