You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result: Able to Attach Visual Studio Code to container on remote host via SSH.
Actual result: Can only Attach Visual Studio Code to containers running on my LOCAL machine, even while connected to the remote host via SSH and able to Attach Shell to remote containers.
Steps to reproduce:
CMD-SHIFT-P > Remove-SSH: Connect to host...
ubuntu@mydomain.com (an Ubuntu LTS EC2 with Docker Engine installed)
CMD-SHIFT-X > search for and install Docker extension on the remote host
Navigate to Docker sidebar
Right click container and Attach Shell -- successful
Right click container and Attach Visual Studio Code -- brings up a list of containers on my LOCAL machine
Extension version: 1.8.1
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-11T01:11:34.018Z)
OS version: Darwin x64 20.1.0
Remote OS version: Linux x64 4.4.0-1110-aws
System Info
Item
Value
CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
The Attach Visual Studio Code command is actually provided by the Remote-SSH extension and there are some known problems with it and remote containers. The latest I could find on the topic is this
Docker server is built to access its REST API service point via TLS directly from the remote client or via Proxy. The local access requires a user that belongs to the Docker group to allow docker.sock access, unlike remote access that requires only TLS. How SSH session can work as Proxy port 22 --> docker.sock?
Issue Type: Bug
Expected result: Able to
Attach Visual Studio Code
to container on remote host via SSH.Actual result: Can only
Attach Visual Studio Code
to containers running on my LOCAL machine, even while connected to the remote host via SSH and able toAttach Shell
to remote containers.Steps to reproduce:
CMD-SHIFT-P
>Remove-SSH: Connect to host...
ubuntu@mydomain.com
(an Ubuntu LTS EC2 with Docker Engine installed)CMD-SHIFT-X
> search for and installDocker
extension on the remote hostAttach Shell
-- successfulAttach Visual Studio Code
-- brings up a list of containers on my LOCAL machineExtension version: 1.8.1
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-11T01:11:34.018Z)
OS version: Darwin x64 20.1.0
Remote OS version: Linux x64 4.4.0-1110-aws
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: