Questions tagged [vscode-remote]

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

868 questions
6
votes
2 answers

Failed to parse remote port from server output: bash: no job control in this shell

I am trying to use VSCode - Insiders to run code on a docker container in a remote AWS machine using the Remote - SSH plugin. I have opened a terminal and set up port forwarding like so: ssh -L 2201:localhost:2222 user@host -N -i ~/.ssh/id_rsa. Then…
jss367
  • 4,759
  • 14
  • 54
  • 76
6
votes
4 answers

Visual Studio Code Remote - Containers - change shell

When launching an attached container in "VS Code Remote Development", has anyone found a way to change the container's shell when launching the vscode integrated terminal. It seems to run something similar to. docker exec -it
Bill Grant
  • 91
  • 1
  • 5
6
votes
2 answers

Should a vscode dev container run npm install as part of its setup?

I've created a VS Code dev container for my project. To help new contributors get started, should the dev container Dockerfile run npm install?
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
5
votes
1 answer

How to configure VScode to debug a gradle/kotlin project?

Currently trying to consolidate development workflow for back and front in VScode with devcontainer, instead of InteliJ for back and VScode for front, with the use of Codespace/Gitpod in mind and a goal to ease the debug of the whole stack. I've…
5
votes
2 answers

VSCode Remote SSH Extension + tmux = -bash: __vsc_prompt_cmd_original: command not found

Maybe about a week or so ago I noticed a weird problem when I use the Remote SSH Extension with tmux. After opening a terminal and starting tmux the following is printed to the console after every command: -bash: __vsc_prompt_cmd_original: command…
Alex Gurvich
  • 53
  • 1
  • 5
5
votes
2 answers

Allow Docker Container & Host User To Write on Bind Mounted Host Directory

Any help from any source is appreciated. Server has a Docker container with alpine, nginx, php. This container is able to write in bind mounted host directory, only when I set "chown -R nobody directory" to the host directory (nobody is a user in…
proseosoc
  • 1,168
  • 14
  • 23
5
votes
1 answer

VSCode remote ssh -- how to automatically install extensions

How do I install VSCode extensions in an SSH connection without doing it through the VSCode UI? I have an environment that spins up a new VM for git branches, and it's really annoying to have to go manually install every extension for each new…
user578895
5
votes
3 answers

How to deal with more than one `network_mode` in a VSCode Remote dev container?

I would like to have an application, database and redis service running in a dev container where I'd be able to access my database and redis inside the container, application and on Windows, this is what currently works just as I wanted for my…
user16985789
5
votes
0 answers

Sharing vscode-server for multiple users to save disk space

We have a Linux server (Ubuntu 20.04) with ~100 users and very limited disk space. The disk quota for each user should be limited to 100MB. The access to the server is via SSH. Several users want to use VSCode for remote development of source code…
elomage
  • 4,334
  • 2
  • 27
  • 23
5
votes
2 answers

VSCode fails to install extensions remote ssh server when using Remote ssh extension

I'm working in a Windows machine behind a corporate firewall and acessing a linux server also behind a corporate firewall. With the excellent Remote-SSH extension, VSCode is failing to install my extensions in the remote linux machine. How to fix…
neves
  • 33,186
  • 27
  • 159
  • 192
5
votes
2 answers

Open files from remote ssh host in VSCode

I'm using using VSCode Remote SSH from my laptop (Linux) to work on projects that resides on a Linux host. If I open an internal terminal in VSCode I can open files from the host by doing code some_file.txt. I frequently want to be able to do the…
Martin Wallgren
  • 503
  • 5
  • 11
5
votes
1 answer

VSCode + remote dev + django: avoiding forwarding ports

I'm using VSCode remote development to run and debug a django project inside a Docker container. In my devcontainer.json I forwarded the port 8000 "forwardPorts": [8000], and this is my launch.json { "version": "0.2.0", "configurations":…
floatingpurr
  • 7,749
  • 9
  • 46
  • 106
5
votes
2 answers

VSCode remote developement using ssh with passphrase protected ssh-key

I have a remote ssh server on which I want to do remote developement. My public key is added to the authorized keys on the server and my private key is passphrase protected. I added the remote host as described here using ssh user@host -i…
AnotherOne
  • 854
  • 2
  • 8
  • 19
5
votes
0 answers

VSCode gets disconnected from remote container constantly

I have a setup to work remotly in a vm inside a container and I have been working with these setup for several months. I followed this guide to setup my client environment. Today it got disconnected when I removed the container (because I was…
agusgambina
  • 6,229
  • 14
  • 54
  • 94
5
votes
3 answers

No "open folder in container" or any other command in remote-containers vs code

I'm using a remote machine, and want to run a docker inside that machine (local->remote->docker) and wish to use the Remote development in Containers tools of vs code Unfortunatlly, I do not see any of the actions after installing the extension. My…
DsCpp
  • 2,259
  • 3
  • 18
  • 46