Donate

Docker ERROR: failed to solve: failed to compute cache key: failed to calculate checksum

Hi all,

Another issue that I encountered while learning Docker specifically build a docker image using .NET Core is the "ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 405e1ab5-1d6a-4b32-b558-cdcae05e5207::q4alx8yd9wbrz32p1zv7s1yg7: "/dockerdemo/dockerdemo.csproj": not found". My project is a simple ASP.NET Core Web API project.
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 405e1ab5-1d6a-4b32-b558-cdcae05e5207
After doing some research, the solution that works for me is to cut the docker file "DockerFile" from the folder that contains the .csproj file. Then paste it to the root folder of the project that contains the solution file (.sln). Run again powershell and execute docker build command that points to the root folder of the project where the docker file is cut and pasted.
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 405e1ab5-1d6a-4b32-b558-cdcae05e5207


That's it!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.