Posts

Showing posts with the label Docker

Donate

Docker Error - denied: requested access to the resource is denied.

Image
Good day gents! As I was about to push my docker image to Docker Hub, I was met with an error "denied: requested access to the resource is denied.". After searching the net, I found the solution that is to login your username using the command " docker login -u your_username " followed by your password using Windows Powershell. Once done logging in, push the image to the repository using docker push command "docker push your_username/dockerdemo". Reference: Docker Denied Requested Access To The Resource Cheers!

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

Image
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. 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. That's it!

Docker Desktop Requires A Newer WSL Kernel Version Issue. Update the WSL kernel by running "wsl --update"

Image
Hello Team, I started familiarizing containerization concepts using Docker in .NET Core in the event that our team will embrace the application of containerization to our certain projects in the near future. When I installed the Docker desktop, it prompted an error "Docker Desktop Requires A Newer WSL Kernel Version Issue. Update the WSL kernel by running "wsl --update" or follow instructions at https://docs.microsoft.com/windows/wsl/wsl2-kernel." The fix to this issue is either running the "wsl --update" command similar to the screenshot below. Or download and install "wsl_update_x64" package from here Linux Kernel Update Package Cheers!

Donate