Advantages of Visual studio executing docker build and starting container

  docker, dockerfile, visual-studio

If I select "Enable docker support" in VS 2019 projects, I see docker file is added with basic instructions, and the container is built and deployed to the local docker desktop as "projectname:dev". What is the advantage of starting the container and deploying locally? Most of the time, I debug my app with "F5" and don’t bother with docker deployments. Isn’t the running "image" wasting cpu cycles and memory when it’s not being used? I understand that I can choose to deploy my "build output" to the docker environment for debugging but, I don’t need that. I plan to use docker for CI/CD later.

Source: Docker Questions

LEAVE A COMMENT