Skip to content

“Docker Container: Stop” using command palette should only show running containers #2497

@v-mengwe

Description

@v-mengwe

OS: All
Build Version: 20201114.1

Repro Steps:

  1. Run "docker run hello-world" -> Make sure there is a stopped "hello-world" container.
  2. Run "docker run registry" -> Make sure there is a running "registry" container.
  3. Check the context menu of the stopped "hello-world" container -> Make sure there is no "Stop".
  4. F1 -> Type "Docker Container: Stop" -> Select "Individual Containers" -> Check the listed result.

Expect:
There is no stopped "hello-world" container.

Actual:
There is a stopped "hello-world" container.
image

More Info:

  1. This issue doesn't reproduce if there is no running container in the selected container group.
  2. This issue also reproduces for GitHub Codespaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions