I am using VS 2022 .Net 8 to create a container image of ASP.Net Web API application but dot net publish command is failing
I am using VS 2022 .Net 8 to create a container image of ASP.Net Web API application but dot net publish command is failing with below error:
Building image 'dockerdemo' with tags 'latest' on top of base image 'mcr.microsoft.com/dotnet/aspnet:8.0'.
C:\Program Files\dotnet\sdk\8.0.400\Containers\build\Microsoft.NET.Build.Containers.targets(242,5): error : Cannot find
docker/podman executable. [C:\Projects\DockerDemo\DockerDemo.csproj]
C:\Program Files\dotnet\sdk\8.0.400\Containers\build\Microsoft.NET.Build.Containers.targets(242,5): error CONTAINER1012
: The local registry is not available, but pushing to a local registry was requested. [C:\Projects\DockerDemo\DockerDemo.csproj]
I don't have Docker Desktop on my machine and I guess it is not mandatory to have the image created.
Please suggest.