Category : .net

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, ..

Read more

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 ..

Read more

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 ..

Read more

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" ..

Read more

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 ..

Read more