'Don't automatically build container on docker-compose up
Is there a way in VSCode with docker extension to change docker-compose up
arguments? By default it is started as docker-compose -f "docker-compose.yml" up -d --build
. But I don't want to rebuild project each time. I want to run separate docker-compose build
command if I need it.
I've looked over devcontainer.json parameters and working with containers article, but did not find anything useful.
Solution 1:[1]
Found the solution.
This can be done edditing Docker extension settings.
There is a check "Docker: Docker Compose build", which can be removed in order to disable build.
Also, settings.json
can be changed with "docker.dockerComposeBuild": false
parameter
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | M1ha Shvn |