Skip to content

edl78/dev_tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Development Tips

VsCode to remote docker

Setup

  • in VsCode, install Docker and Remote-Containers extension.
  • start the docker container to debug on the remote machine.
  • create a docker context on the local machine, for example (change details): docker context create docker-on-dopamine --docker "host=ssh://username@server:port"
  • setup ssh-tunneling: ssh-keygen
  • copy with helper tool: ssh-copy-id -p port_number -i path/to/key.pub username@server
  • make sure the ssh-agent is set up, this can be checked with ssh-add -l
  • switch to remote docker context in vscode gui docker environment.
  • hit F1 and choose "Remote-Containers: Attach to running container..."
  • done. Open a file and start debugging with F5 or other means. Enjoy!
  • Known issue: if VsCode Python plugin fails to start debug, install an older version, 22.6.0 works for example.

Academic citation

Please see the main webpage for information on how to cite.

Issues?

Please use the github issues for this repo to report any issues on it.

About

Some Docker VSCode tips for remote workers

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors