Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no running containers to attach to. #2579

Closed
jakeum opened this issue Dec 23, 2020 · 3 comments
Closed

There are no running containers to attach to. #2579

jakeum opened this issue Dec 23, 2020 · 3 comments

Comments

@jakeum
Copy link

jakeum commented Dec 23, 2020

ubuntu 18.04
computer A (vscode)
server B(docker)

Let say I used vscode ssh connectioin to serverB(docker)
computerA ---------> ssh------------> serverB(docker) then I try to connect with vscode's(try to connect attach a Running Container)

computerA ---------> ssh------------> serverB(docker)-----> connect attach a running container
but I got the error
There are no running containers to attach to.

@PavelSosin-320
Copy link

Docker is server by itself, for good and bad. It is always possible to attach to the container using Docker remote API in a very secure manner. In the proposed Babylon tower 3 flows are redundant: ssh client on the client-side, ssh server on the server-side, docker CLI at the server-side. Unlike direct API connection that allows monitoring Docker engine status using _PING and Docker container using health-check it will be very hard to synchronize lifecycle of the remote SSH server, remote Docker engine, and remote docker container with the VSCode running on the client-sideThe frequency of "Can't connect" and "Can't find" will be very high.

@karolz-ms
Copy link
Contributor

@jakeum are you trying Attach Shell... command, or Attach Visual Studio Code... command?

If this is the latter, please refer to this issue

@bwateratmsft
Copy link
Contributor

This issue has been closed because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants