Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop VS2017 preparing the docker images

I use VS2017 (15.7) with Win10 (1803) and Docker (18.03).
My solution contains a Docker-Project (dcproj) which defines how my docker container should start.

Whenever I open Visual Studio or change code it automatically starts preparing the container.

========== Preparing Containers ========== Getting Docker containers ready... <snip> Step 1/4 : FROM microsoft/aspnet:4.7.1-windowsservercore-1709 <snip> Successfully built cbde0ec28022 <snip> Done! Docker containers are ready.

How can I stop that behavior? It eats up the performance of my laptop! When I want to start the container I would start, but building all the time is too much.

Is there a setting for this?

Issue Link: https://github.com/Microsoft/DockerTools/issues/100

like image 505
SeriousM Avatar asked May 08 '18 12:05

SeriousM


People also ask

How do I stop docker from running images?

Note that pressing `Ctrl+C` when the terminal is attached to a container output causes the container to shut down. Use `Ctrl+PQ` in order to detach the terminal from container output.

How do I stop Dockerfile?

To exit out of the docker container bash shell. Just run exit or hit ctrl-D like you normally would.

How do I stop docker from pushing?

Refer to the docker image tag reference for more information about valid image and tag names. Killing the docker image push process, for example by pressing CTRL-c while it is running in a terminal, terminates the push operation.

How do I stop docker container auto start?

Deselect 'Start Docker when you log in' on the General tab. Close the Preferences window. Quit Docker (Cmd-Q or use the menu).


1 Answers

The solution is by disabling it under

Tools->Options menu and then Container Tools->Settings

like image 138
SeriousM Avatar answered Sep 28 '22 18:09

SeriousM