Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attach to container on remote host with vscode

In order to have sufficient computational power for my data science workflow, I'm using Docker containers on a remote machine. While I can connect via vscode-remote to my remote machine, I then can't attach to Docker containers running on this machine. Is there a way to do that? Or is this a feature not yet implemented?

Thanks a lot!

like image 295
KaiL Avatar asked Oct 26 '25 18:10

KaiL


1 Answers

Yes, using VSCode remote to connect to and develop in a remote container is supported, but it is considered an 'advanced' use of the 'Remote - Containers' functionality. (The primary use cases currently include connecting to a remote VM via SSH and connecting to a local container.)

See here for instructions:
Developing inside a container on a remote Docker host

Sometimes you may want to use the Remote - Containers extension to develop inside a container that sits on remote server. This section outlines how you can achieve this by using devcontainer.json or attaching to an existing remote container...

like image 116
Tom Avatar answered Oct 29 '25 19:10

Tom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!