microsoft / microsoft/vscode-remote-release

Dev containers: Attach to running container... hangs forever

Open
#9,218 0 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Nov 27, 2023.

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

Description

  • VSCode Version: 1.84.2
  • Local OS Version: Windows 11 22H2
  • Remote OS Version: Ubuntu 20.04.5 LTS
  • Remote Extension/Connection Type: Containers
  • Logs:
[7409 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}}
[7480 ms] 1.41
[7481 ms] Start: Run in Host: docker ps -q
[7543 ms] Start: Run in Host: docker inspect --type container d6dd3726dc5e dbc3ade35296 72fe2438ab22 316132c492c0 9109eab8fe8e 1dafc6024bba 5209faff1a85 27435a87decb 21a49afee7b4 7eeba29f30d1 2491d2aa6b72 d6b733f827ca 7055a563bc33 ef4c9f8cf424 d74835062838 6634d87fa068 d5a4a9262724 01019d540183 8861e19b00f7

Steps to Reproduce:

  1. Connect to server via Remote-SSH
  2. F1 -> Dev containers: Attach to running container...

Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

The container with id d748... seems to be corrupted(docker attach, stop doesn't work), resulting in docker inspect to hang forever. Since it is not my personal server and I am not the owner of the corrupted container, I should not kill the container. It would be great to have an option to connect to container directly via container id or something, without loading every containers available...

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.