Tag: docker
-
Errors pushing an image to a new ECR repo on AWS
Hey everyone, I normally use DigitalOcean or Azure for docker and kubernetes but have decided to give AWS a go this time around. I was following a guide on deploying an image to a new ECR repo and hit a couple of issues. The first was that running the login command output help options instead…
-
Container Registry Template for Azure Bicep
Hi everyone, Just another Bicep template I’m using – this one is for a basic container registry: See the following definition if you need more info on some of the properties: https://docs.microsoft.com/en-us/azure/templates/microsoft.containerregistry/2019-12-01-preview/registries?tabs=json
-
Docker Volumes Mounting File as Folder on Windows
Hey everyone, I ran into a small issue today using docker-compose. I had a config file I was trying to mount as a volume however running “docker-compose up” generated a folder instead. ERROR: for grafana Cannot start service grafana: OCI runtime create failed: container_linux.go:349: starting container process caused “process_linux.go:449: container init caused \”rootfs_linux.go:58: mounting \\\”/host_mnt/e/repos/Sample-Twitch/grafana/datasources.yml\\\”…
-
Failed to load the development https certificate using docker and ocelot
Hey everyone, I randomly started encountering the following error while using docker to host my Ocelot gateway: Failed to load the development https certificate at ‘/root/.aspnet/https/ContentGateway.pfx’. The solution ended up being to clean out as many temp files as possible, especially the generated certs: Delete the following files: Delete the C:\Users{USER}\AppData\Roaming\ASP.NET\Https folder Clean the solution.…
-
Unable to find the target operating system for the project
Hi everyone, I ran into the following error today after updating visual studio 2019 to version 16.6: unable to find the target operating system for the project I tried a fair few things to get this going again and I’m assuming they’re not all necessary, but I’ll list them just in case: – Clean solution…
-
Docker – Severity Code Description Project File Line Suppression State Error DT1001 Service service has neither an image nor a build context specified. At least one must be provided. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 204
Hi everyone, I ran into the following error while using docker compose and visual studio: Severity Code Description Project File Line Suppression State Error DT1001 Service has neither an image nor a build context specified. At least one must be provided. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 204 It took a bit of poking around…
-
Http gRPC with .NET Core and Docker – Error starting gRPC call. System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.IO.IOException: The response ended prematurely.
Hi everyone, I’ve been mucking around with gRPC today while using .NET Core and Docker. I have two Microservices in the setup, one server and one client. Because these services will only be communicating internally I intended to use HTTP instead of HTTPS. Unfortunately, I hit the following error while attempting to set this up:…
-
Current .NET SDK does not support targeting .NET Core 3.0 – Microservices
Hi everyone, I’m currently learning microservices with .Net Core. As part of this I’ve been following one of Microsoft’s tutorials: https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial It has all been pretty straight forward, however I hit an error when attempting to run docker build: RUN dotnet restore —> Running in 734e82e92c23 /usr/share/dotnet/sdk/2.2.207/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not…