Closed LakshmanJha closed 1 month ago
[build 3/6] COPY MyMicroservice.csproj .:
Dockerfile:3
1 | FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build 2 | WORKDIR /src 3 | >>> COPY MyMicroservice.csproj . 4 | RUN dotnet restore 5 | COPY . .
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 73c59b39-887e-4654-82e5-8777943238cf::ngrmvzfqjt6dn4ocqtoq1lhlm: "/MyMicroservice.csproj": not found
COPY MyMicroservices.csproj was missing. Its fixed now.
URL
https://dotnet.microsoft.com/en-us/learn/aspnet/microservice-tutorial/docker-image
Operating system
windows
More information about your system
Device name Lakshman Processor 12th Gen Intel(R) Core(TM) i5-1235U 1.30 GHz Installed RAM 16.0 GB (15.7 GB usable) Device ID A1CA222B-A050-438A-AD16-1A1BC4460E70 Product ID 00356-24720-69081-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display
Edition Windows 11 Home Single Language Version 23H2 Installed on 12-02-2024 OS build 22631.3880 Experience Windows Feature Experience Pack 1000.22700.1020.0
Description
docker build -t mymicroservice .
C:\Lakshman\Microservices\MyMicroservices>docker build -t mymicroservices . ERROR: error during connect: this error may indicate that the docker daemon is not running: Head "http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping": open //./pipe/docker_engine: The system cannot find the file specified.
dotnet --info
.NET SDK: Version: 8.0.101 Commit: 6eceda187b Workload version: 8.0.100-manifests.df7c29bf
Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\8.0.101\
.NET workloads installed: Workload version: 8.0.100-manifests.df7c29bf There are no installed workloads to display.
Host: Version: 8.0.1 Architecture: x64 Commit: bf5e279d92
.NET SDKs installed: 8.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download