Looks like it's officially possible to self-host vscode server and access it through vscode.dev (also see this GitHub issue).

For reaching it through custom URL consider using Gitpod's OpenVSCode Server fork of vscode.

If you just want to share your configuration between machines, it's probably simplest to just use settings sync, which is available in default installation.

Answer from Matija Sirk on Stack Overflow
๐ŸŒ
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 ...
๐ŸŒ
Reddit
reddit.com โ€บ r/vscode โ€บ running vscode in a docker container
r/vscode on Reddit: Running VScode in a docker container
March 28, 2020 -

Goal

Having multiple containers with different vscode instances.
Example: I want one container with a vscode with the necessary extensions (and dependecies) to do web development, other container to do back-end development, and other to do data-science development. This will avoid having tons of extensions in the same VScode instance, wich sometimes, causes conflicts.

As far as i know, this can be done accessing via browser pointing to a port of the container running VScode right? Can i access without the need of browser? This is because i use a lot keyshortcuts and i'm afraid they don't work if use VScode via browser. Also, is the performance a concern or will it run smoothly?

Some references

site A
site B

If you have other references other than the ones i provided, please share.

Discussions

How to use docker desktop for Windows with VS Code
I created a Docker container from Windows PowerShell for dolphinx with the command available in the Readme.md for dolphinx package. The container is running and I installed a couple of helper extensions for VS Code for using Docker. My question is that I would like to know how to start a new ... More on forums.docker.com
๐ŸŒ forums.docker.com
5
0
June 12, 2023
VS Code Dev Containers (Docker for Robotics Part 5) - Articulated Robotics Content Discussions - Articulated Robotics Community
This is the discussion topic for the video linked above. Please keep all replies relevant to the content, otherwise create a new topic. More on discourse.articulatedrobotics.xyz
๐ŸŒ discourse.articulatedrobotics.xyz
6
0
January 5, 2024
Anyone here use vscode?

I'm having a hard time understanding what you want to do specifically. Do you want to work with a repository inside a docker container to have a common development environment that is always the same regardless of the host system?

In that case you simply follow this guide: https://code.visualstudio.com/docs/remote/containers

More on reddit.com
๐ŸŒ r/docker
16
12
October 14, 2020
Development container with Visual Studio code - how does it work?
Docker has the concept of volumes. What VSCode evcontainer does is interface with Docker (however that is configured) to spin up the requested Docker image and then mount your code base as volume inside of that Docker container. Most of my experiences is with Python so my examples are going to be specific to that. You can also open a terminal directly into the container, and then issue whatever commands you need to. Things like pip install whatever. Then you can do things like pip freeze > requirements.txt. And then in the devcontainer.json, you can have a postCommand that will actually do a pip install -r requirements.txt and if your container is ever rebuilt, you have the packages you need. You can add services like black, or the like for linting. I HIGHLY recommend this setup. I used to use venvs for everything, now I don't even bother. Everybody gets a DevContainer. More on reddit.com
๐ŸŒ r/docker
3
13
July 28, 2022
๐ŸŒ
Skao
developer.skao.int โ€บ en โ€บ latest โ€บ howto โ€บ docker-vscode.html
How to use VSCode Docker extension for Dockerfile development โ€” developer.skao.int 1.0.0 documentation
Click in the Docker extension icon on the left pane of vscode. In the images tab find your image and left-click on it to reveal the existing tags. Choose your tag and click Run to run it.
๐ŸŒ
GitHub
github.com โ€บ pubkey โ€บ vscode-in-docker
GitHub - pubkey/vscode-in-docker: Run VSCode inside of a Docker Container ยท GitHub
Run VSCode inside of a Docker Container. Contribute to pubkey/vscode-in-docker development by creating an account on GitHub.
Starred by 47 users
Forked by 10 users
Languages ย  Dockerfile 69.7% | Shell 30.3%
๐ŸŒ
Docker
docker.com โ€บ blog โ€บ master-docker-vs-code-supercharge-your-dev-workflow
Master Docker and VS Code: Supercharge Your Dev Workflow | Docker
April 17, 2025 - Get step-by-step instructions on how to pair VS Code and Docker to streamline your development processes.
๐ŸŒ
Medium
medium.com โ€บ @bernd.bornhausen โ€บ setting-up-visual-studio-code-with-docker-as-a-development-environment-for-python-da640978cae3
Setting up Visual Studio Code with Docker as a development environment for Python | by Bernd Bornhausen | Medium
January 25, 2022 - #The base image for the container FROM python:3.9-slim-buster # Keeps Python from generating .pyc files in the container ENV PYTHONDONTWRITEBYTECODE=1 # Turns off buffering for easier container logging ENV PYTHONUNBUFFERED=1 # Copy python requirements to the docker container and install COPY requirements.txt . RUN python -m pip install -r requirements.txt #create a non root user to access the container RUN adduser -u 5678 โ€”-disabled-password --gecos โ€œโ€ vscode
Find elsewhere
๐ŸŒ
Docker Community
forums.docker.com โ€บ docker desktop
How to use docker desktop for Windows with VS Code - Docker Desktop - Docker Community Forums
June 12, 2023 - I created a Docker container from Windows PowerShell for dolphinx with the command available in the Readme.md for dolphinx package. The container is running and I installed a couple of helper extensions for VS Code for uโ€ฆ
๐ŸŒ
ASP.NET Hacker
asp.net-hacker.rocks โ€บ 2021 โ€บ 02 โ€บ 04 โ€บ remote-docker.html
Working inside a Docker container using Visual Studio Code
February 4, 2021 - Select the Docker tab in VSCode and you will find your newly built image in the list of images: You can now right-click the tag latest and choose "Run Interactive". If you just choose "Run" the container stops, because we commented out the entry ...
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Dev Containers - Visual Studio Marketplace
Extension for Visual Studio Code - Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ containers โ€บ overview
Containers in Visual Studio Code
November 3, 2021 - Docker Compose lets you define and run multi-container applications with Docker. Our Compose Language Service in the Container Tools extension gives you IntelliSense and tab completions when authoring docker-compose.yml files.
๐ŸŒ
Earthly
earthly.dev โ€บ blog โ€บ how-to-use-docker-in-vscode
How to use Docker in VS Code - Earthly Blog
July 19, 2023 - To do this, right-click on the running container in the docker explorer and click on โ€œopen in browserโ€: The docker extension includes a VS Code debugger configuration inside .vscode/launch.json for debugging when running inside ...
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ remote โ€บ advancedcontainers โ€บ develop-remote-host
Develop on a remote Docker host
November 3, 2021 - Docker does not support mounting (binding) your local filesystem into a remote dev container, so Visual Studio Code's default devcontainer.json behavior to use your local source code will not work. While this is the default behavior, in this section we will cover connecting to a remote host so that you can either use the Remote - SSH extension to open a folder on a remote host in a container, attach to any running container, or use a local devcontainer.json file as a way to configure, create, and connect to a remote dev container using a socket.
๐ŸŒ
Medium
medium.com โ€บ @taufiqpsumarna โ€บ run-vs-code-on-browser-b4320cc9d375
Code-Server: run VScode anywhere on browser | by Taufiq Permana | Medium
September 9, 2024 - Code Server is a VS Code extension that lets you run VS Code on any machine anywhere using Docker Compose. This means you can code on your Chromebook, tablet, and laptop with a consistent dev environment.
๐ŸŒ
C# Corner
c-sharpcorner.com โ€บ article โ€บ installing-and-running-visual-studio-code-on-docker
Installing and Running Visual Studio Code on Docker
May 19, 2025 - A new browser tab will open with the Visual Studio Code interface running inside the container. To persist your files and settings, you can map a local directory to the container. Run the container with a volume: docker run -d -p 8080:8080 -v $(pwd):/workspace vscode-docker
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ devcontainers โ€บ create-dev-container
Create a Dev Container
November 3, 2021 - The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder or repository inside a container and take advantage of Visual Studio Code's full feature set.
๐ŸŒ
YouTube
youtube.com โ€บ watch
Docker and Visual Studio Code: A Step by Guide to an Ultimate Local Development Workflow - YouTube
๐Ÿณ Docker and Visual Studio Code are two powerful tools that can be used to streamline your local development workflow. In this video, I'll show you how to u...
Published ย  October 4, 2023
๐ŸŒ
Docker
docker.com โ€บ blog โ€บ docker-dx-extension-for-vs-code
New Docker Extension for Visual Studio Code | Docker
April 17, 2025 - Speed up development with Docker DX extension with real-time feedback, smarter linting, and intuitive Bake/Compose file support in VS Code.