microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

docker-compose.override.yml ignored #4246

Closed jwaes closed 4 months ago

jwaes commented 4 months ago

When i start from the command line docker compose up my docker-compose.override.yml file gets taken into account as expected.

When i right click in the extension on the docker-compose.yml file in the explorer panel and choose 'Compose Up' from the menu, the configuration the override file is ignored.

bwateratmsft commented 4 months ago

This is intentional since the file has been explicitly selected. If however you run "Compose Up" from the command palette instead of right-clicking the file, it will run the default docker compose up -d command, which will include both the docker.compose.yml and docker-compose.override.yml files.

bwateratmsft commented 4 months ago

You can also use command customization to get the exact behavior you want.

jwaes commented 4 months ago

Ok, clear. Thank you. But in this logic i would expect that right clicking the docker-compose.override.yml file would take it into account. But that does not invoke its parent. This was actually my first intuitive try.

But thanks for your explenation i didnt use the command palette yet. And that indeed works.