Visual Studio Container Tools requires Docker to be running before building, debugging or running a containerized project
In my case I had an erroneous reference in Dependencies > Packages to Microsoft.VisualStudio.Azure.Containers.Tools.Targets Removing the reference fixed the error.