Docker Community Forums

Share and learn in the Docker community.

Visual studio not rebuild new image when debug

I’m using Visual studio Enterprise 2019.
I have built an image, by clicking the green rectangle for Debug, Docker, and it start debugging… great…
But when I’m changing the Docker file add Run apt-get commands for example, it never rebuild the image when I’m re clicking the Debug green rectangle!

Even when delete and prune all images, and delete obj and bin folder and run ’ wsl --shutddown,
It still not generate a new image that contains my new Run commands!

When I’m run it under release configuration, it rebuild it, but iI can’t debug it…

Any idea how to force it rebuild using the visual studio?



It realted to this Q here, but still anyone can explain it?