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

Compose Restart inconsistency #4238

Open sebbi08 opened 4 months ago

sebbi08 commented 4 months ago

Hi,

the restart commands in the context menus behave inconsistent.

The restart command in the context menu of a compose file in the Explorer View will do an docker compose down followed by an docker compose up

The restart action on the context menu in the docker panel when selecting a stack will do a docker compose restart.

Could we change that to doing only a restart in both cases and add a recreation command that does the down up cycle?

For context, we have a stack of test-dbs without mount, so to reset the data down and up is enough. But we start it by default with a different name than the default compose name. But the restart command in the Explorer View will not work, as it will take the default name for the stack. And the restart in docker panel will not work as a normal restart will not recreate the container.