🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › containers
Developing inside a Container
November 3, 2021 - Start VS Code and run Dev Containers: Clone Repository in Container Volume... from the Command Palette (F1). Enter microsoft/vscode-remote-try-node (or one of the other "try" repositories), a Git URI, a GitHub branch URL, or a GitHub PR URL ...
🌐
Visual Studio Code
code.visualstudio.com › docs › remote › remote-overview
VS Code Remote Development
November 3, 2021 - Dev Containers - Work with a separate toolchain or container-based application inside (or mounted into) a container. WSL - Get a Linux-powered development experience in the Windows Subsystem for Linux. Remote - Tunnels - Connect to a remote machine via a secure tunnel, without configuring SSH. While most VS Code extensions should work unmodified in a remote environment, extension authors can learn more at Supporting Remote Development. The tutorials below will walk you through running Visual Studio Code with the Remote Development extensions.
Discussions

VS Code: connect a docker container in a remote server - Stack Overflow
I Installed [Docker] extension on the remoter server. Now I can see my containers and images in a docker tab. I clicked one container and clicked [Attach Visual Studio Code] and it says There are no running containers to attach to. ... Same problem here. It could be a bug of docker extension, because attaching to vscode ... More on stackoverflow.com
🌐 stackoverflow.com
How to use VScode in a container in a remote machine?

Likely you are after https://GitHub.com/coder/coder or https://GitHub.com/coder/code-server

More on reddit.com
🌐 r/docker
16
0
December 16, 2022
How to set up development in remote Docker container?
https://code.visualstudio.com/docs/remote/containers-advanced#_developing-inside-a-container-on-a-remote-docker-host More on reddit.com
🌐 r/vscode
6
13
July 30, 2019
I can't find my .vscode-server file to delete it.
It'll be on the remote server itself. You'll have to be sure you're viewing hidden folders (e.g. ls -a on linux). More on reddit.com
🌐 r/vscode
4
0
June 21, 2024
🌐
Visual Studio Code
code.visualstudio.com › remote › advancedcontainers › overview
Advanced container configuration
November 3, 2021 - Installation - How to install Docker, VS Code, and the Remote Development Extension Pack. Quick starts - Step-by-step instructions for common container scenarios. Once you have your machine configured, try the Containers tutorial for an in-depth tour of working with containers.
🌐
Rancher Desktop
docs.rancherdesktop.io › vs code remote containers
VS Code Remote Containers | Rancher Desktop Docs
This tutorial uses Visual Studio Code. Install the Remote Development extension pack. After the extension is installed, you will see the extension item in the side bar, and a green button at the lower left corner to show the command palette with various options/commands related to Remote Development. Microsoft provides a number of sample dev containers at this GitHub repository: https://github.com/microsoft/vscode-dev-containers.git.
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › tutorial
Dev Containers tutorial
November 3, 2021 - Once the container is running and you're connected, you should see your remote context change in the bottom left of the Status bar: One of the useful things about developing in a container is that you can use specific versions of dependencies that your application needs without impacting your local development environment. The specific container for this tutorial has Node.js v18 installed, which you can check by opening a new terminal Terminal > New Terminal (⌃⇧` (Windows, Linux Ctrl+Shift+`)) and entering:
🌐
Docker
docker.com › blog › how-to-develop-inside-a-container-using-visual-studio-code-remote-containers
How to Develop Inside a Container Using Visual Studio Code Remote Containers | Docker
June 16, 2020 - As with all the other VS Code extensions, you also manage this with the Command Palette. You can either use the shortcut or the green button in the bottom left corner to open it. In the popup, search for Remote-Containers and select Open Folder in Container…
🌐
Visual Studio Code
code.visualstudio.com › remote › advancedcontainers › develop-remote-host
Develop on a remote Docker host
November 3, 2021 - Follow the quick start for the Remote - SSH extension to connect to a host and open a folder there. Create a devcontainer.json file. Use the Dev Containers: Reopen in Container command from the Command Palette (F1, ⇧⌘P (Windows, Linux ...
🌐
GitHub
github.com › microsoft › vscode-docs › blob › main › remote › advancedcontainers › overview.md
vscode-docs/remote/advancedcontainers/overview.md at main · microsoft/vscode-docs
Installation - How to install Docker, VS Code, and the Remote Development Extension Pack. Quick starts - Step-by-step instructions for common container scenarios. Once you have your machine configured, try the Containers tutorial for an in-depth tour of working with containers.
Author   microsoft
Find elsewhere
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › tabs-vs-spaces › visual-studio-code-remote-dev-with-containers--codespaces
Visual Studio Code: Remote Development with Containers & Codespaces | Microsoft Learn
February 18, 2021 - In part 2 of Remote Development with Visual Studio Code, Brigit Murtaugh, a PM with VS Code, will explain how to set up a remote development environment using either Docker containers or GitHub Codespaces. Chapters [00:19] - What is remote development in VS Code?
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › beginners-series-to-dev-containers › installing-the-remote-containers-extension-2-of-8--beginners-series-to-dev-containers
Installing the Remote - Containers Extension [2 of 8] | Microsoft Learn
January 26, 2021 - Main Remote - Containers Documentation: https://aka.ms/vscode-remote-containers · Remote - Containers Tutorial: https://aka.ms/vscode-remote-containers-tutorial · Watch entire series: https://aka.ms/BeginnerSeriesToDevContainers · Follow: https://twitter.com/brigitmurtaugh ·
🌐
Visual Studio Code
code.visualstudio.com › docs › containers › ssh
Connect to remote Docker over SSH
November 3, 2021 - Use the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) to issue the Docker Contexts: Use command to activate the Docker context pointing to the remote machine. This command causes both VS Code and Docker CLI to use the remote machine context. If you don't have this command, make sure to install the Container Tools extension.
🌐
Red Hat
developers.redhat.com › articles › 2023 › 02 › 14 › remote-container-development-vs-code-and-podman
Remote container development with VS Code and Podman | Red Hat Developer
August 14, 2023 - Learn how to set up a machine as a remote development server with Visual Studio Code Remote Development, Podman, and Podman Desktop.
🌐
DEV Community
dev.to › rosgluk › using-dev-containers-in-vs-code-2p8a
Using Dev Containers in VS Code - DEV Community
October 13, 2025 - { "name": "Node.js Development Container", "build": { "dockerfile": "Dockerfile" }, "settings": { "terminal.integrated.shell.linux": "/bin/bash" }, "extensions": [ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode" ], "forwardPorts": [3000], "postCreateCommand": "npm install", "remoteUser": "node" } 💡 Tip: You can include your favorite VS Code extensions, environment variables, and even auto-run commands after the container builds.
🌐
David Lau Tech
davidlau.tech › blog › remote-containers
Visual Studio Code Remote Containers Tutorial
August 12, 2022 - For this tutorial, we will use a node container and create a react app. FROM node:18.7.0-alpine3.16 RUN npm install -g create-react-app COPY . ./ We are now ready to install the Remote - Containers extension in VSCode and run our container:
🌐
GitHub
github.com › microsoft › vscode-dev-containers
GitHub - microsoft/vscode-dev-containers: NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own! · GitHub
November 30, 2023 - A link is available in the .devcontainer/devcontainer.json file added to your folder. Run Remote-Containers: Reopen in Container to use it locally, or Codespaces: Rebuild Container from within a codespace.
Starred by 4.7K users
Forked by 1.4K users
Languages   Shell 78.1% | Dockerfile 8.2% | JavaScript 7.0% | Jupyter Notebook 4.4% | Python 0.9% | C# 0.4%
🌐
Opengeosys
opengeosys.org › stable › docs › devguide › advanced › vscode-devcontainer
Develop with VS Code Remote – Containers
Inside VS Code install the Remote Development extension pack (includes Remote – Containers and Remote – SSH extensions).
Top answer
1 of 11
28

I resolved this problem by switching to the remote server's Docker context on my local machine:

docker context create some-context-label --docker "host=ssh://user@remote_server_ip"

docker context use some-context-label

docker ps
# A list of remote containers on my local machine! It works!

After that:

  1. Connect via Remote-SSH to the container server
  2. Right click relevant container -> the "Attach Visual Studio Code"

That works for me.

(Note: One would think that I should be able to just use my local VSCode (skip step 1) to connect to said remote container after switching my local context, but VSCode complains Failed to connect. Is docker running? in the Docker control pane.)

2 of 11
8

This might sound very strange, but for me, I had to open a folder on the remote SSH server prior to using the Remote Containers extension in VS Code. If I didn't do that, then it would constantly try to find the docker service running locally, even though the terminal tab was connected to the remote SSH server.

This seems very weird, because if you're conncted via SSH in VS Code, then the extension should assume you're trying to attach to the container on the remote server. Shouldn't have to open a remote folder first.

By "opening a folder" on the remote server, the Remote Containers extension was then able to attach VS code to the container running on the remote SSH server. I didn't have to do any of the steps in any of those articles. Just simply use Remote SSH to connect VS Code remotely via SSH, open a folder, and then use Remote Containers.

🌐
Swiftorial
swiftorial.com › tutorials › vs code › remote development › remote containers
Remote Containers | Remote Development | Vs Code Tutorial
August 22, 2025 - Detailed tutorial on Remote Containers in Remote Development, part of the Vs Code series.