简体   繁体   中英

How do I make visual studio code running on my laptop connect to remote machine via ssh and build/debug on docker container on remote machine

I have a mac laptop where I am running Visual Studio code. My source code lives on a bigger Linux machine which has docker installed, with a docker image that has my build environment. I would like to connect to the remote desktop via ssh, and then to the docker container to build, run and debug in VSCode. Is this possible? I have SSH, remote containers extensions installed. I can see the docker images but I cannot attach to the images after I run them.

I think it's not possible with visual studio code, but with visual studio for Mac 2019, you can install Docker desktop for Mac and add support for Docker to your project. After that, you can run and debug your app in local container.

https://docs.microsoft.com/en-us/visualstudio/mac/docker-quickstart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM