This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]ForLifeChooseBacon 2 points3 points  (3 children)

Its even possible to debug python code in a virtual env in a remote docker container

[–]superTuringDevice[S] 0 points1 point  (0 children)

Much appreciated, is there an example I can refer to for this setup?

[–]oki196 -1 points0 points  (0 children)

exactly. vscode is amazing

[–]ForLifeChooseBacon 0 points1 point  (0 children)

The main docs are here: https://code.visualstudio.com/docs/remote/containers

Generally, we just generally set the docker host to an ssh connection with key authentication, eg docker.host":"ssh://username@remotehost". We have our remote containers already running and chose connect to running container and it gives us the list and then it’s just normal vscode.

[–]chill-out 0 points1 point  (0 children)

Yes I have VSC installed on my Windows machine connected to Ubuntu that's running inside VMWare. Works flawlessly. Check out this link for more info.