microsoft / microsoft/vscode-remote-release

Show attached container name instead of image

Open
#2,705 2 comments 11 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Apr 9, 2020.

containers under-discussion
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I'm using VSCode to attach to several remote containers which are created using Docker Compose. These containers appear to have unique names that show up under "Attributes > Name" in the Remote Explorer details section.
image

However, when I attach to these containers, the VSCode window title and the green "Remote" button/menu in the bottom left only show the container's Image which is mostly useless, especially for distinguishing between multiple windows.
image

docker ps shows the two containers' names listed, why can't VSCode get them too?

CONTAINER ID        IMAGE                                    COMMAND             CREATED             STATUS              PORTS                     NAMES
c041e00538c9        gitlab.[...]/core/depot-stage/combined   "sleep infinity"    7 hours ago         Up 36 minutes       0.0.0.0:32768->8080/tcp   firmwolverine_stage_1
253b8fcd063e        gitlab.[...]/core/depot-stage/combined   "sleep infinity"    3 weeks ago         Up 36 minutes       0.0.0.0:32769->8080/tcp   depotviolet_stage_1

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.