microsoft / microsoft/vscode-containers

Compose Restart inconsistency

Open
#106 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
139
Forks
87
Avg merge
9h 15m
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the Compose actions exposed by the Explorer View and Docker panel context menus, then compare how each invokes Docker Compose. Make both restart actions use restart semantics and add a separate recreation action for the down/up cycle, preserving the stack name; verify both menus expose the intended behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, typescript, vscode
Domain
devtools, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.