[Question] How to stop the Docker containers from Visual Studio 2017?
See original GitHub issueHello,
How to stop the containers that was run by Docker Compose? I click “Stop Debug” (Shift + F5) from Visual Studio 2017 but the containers are still running. Also tried docker-compose stop
to no avail.
I have tried “Build -> Clean Solution” but I don’t want to clean everything.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to stop VS2017 preparing the docker images
The solution is by disabling it under. Tools->Options menu and then Container Tools->Settings.
Read more >Closing Solution or Visual Studio is not Stopping Docker- ...
After closing a solution, I can see in the Container Tools window that docker-compose is never called to tear down the containers.
Read more >Inspecting Docker Containers with Visual Studio Code
Now from the terminal/command prompt, run docker-compose down to stop the running container. This will free up memory and release any used ports ......
Read more >Install Build Tools into a container - Visual Studio
In your Dockerfile file, remove the C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat and && parameters from the ENTRYPOINT command. The command ...
Read more >Tip 60 - Use Visual Studio 2017 with Docker Support
NET Core WebAPI project · Add it to a Docker Container using Docker Compose and push it to a ... Open Visual Studio...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Afaik, the only way to do it from VS would be to do a “Clean Solution”. Other choices:
Hi @chess-equality,
There’s no way to do that that I’m aware of, but you can do it from the command line with this command:
You can also create a container with Portainer with this batch and keep it on the desktop 😉
Hope this helps.