Skip to content

Latest commit

 

History

History
77 lines (60 loc) · 3.54 KB

VSCODE.md

File metadata and controls

77 lines (60 loc) · 3.54 KB

VSCode Remote Development in Docker Containers

Attaching to a container that is running on a local machine

  1. Install Docker extension.
  2. Open Docker Extension tab and find your container or press Shift+P and type `> Dev Containers: Attach to Running Container...
  3. Open /code folder.
  4. Voilà!

Attaching to a container that is running on a remote server

  1. Install Remote Development extension pack
  2. Connect to machine where the docker container is running with SSH:
    • Check >< icon in the bottom left corner of the app or press Shift+P and type > Remote-SSH: Connect to Host...
    • Select the host with the running container (to avoid typing password on every login, google for ssh host alias and ssh pubkey authentication )
  3. Install Docker extension on remote VScode instance (got to Extensions and type Docker)
  4. Open Docker Extension tab and find your container or press Shift+P and type `> Dev Containers: Attach to Running Container...
  5. Open /code folder.
  6. Voilà!