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 - Add your user to the docker group by using a terminal to run: sudo usermod -aG docker $USER ยท Sign out and back in again so your changes take effect. Install Visual Studio Code or Visual Studio Code Insiders. Install the Dev Containers extension.
๐ŸŒ
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.

๐ŸŒ
Reddit
reddit.com โ€บ r/vscode โ€บ installing vs code in a docker container
r/vscode on Reddit: Installing VS Code in a Docker container
April 3, 2025 -

Hello,

I have been using VS Code for some years and recently started using Docker, but I am not an expert in IT infrastructure so I would like to know if it is possible to literally have VS Code and the elements required to use notebooks (Ipykernel, Python, etc) installed in a container, so that I can directly use it anywhere.

The reason for this approach is that I am working with some data hosted in an offline server, and the only way to work in there is through the packages and modules you install in a container. I can already use Jupyter notebook as it seems to be quite simple to get - just including python, its packages, and Jupyter notebook in the container.

However, I really am not a fan of Jupyter and I would love to set up a way to have VS Code run on that server. I would greatly appreciate any tips that anyone could give :)

Thanks a lot!

Best regards,

Red muffin

๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ containers โ€บ overview
Containers in Visual Studio Code
November 3, 2021 - On Linux, you should also enable Docker CLI for the non-root user account that will be used to run VS Code. To install the extension, open the Extensions view (โ‡งโŒ˜X (Windows, Linux Ctrl+Shift+X)), search for container tools to filter results and select the Container Tools extension authored by Microsoft.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ devcontainers โ€บ tutorial
Dev Containers tutorial
November 3, 2021 - Running VS Code inside a Docker container can be useful for many reasons, but in this walkthrough we'll focus on using a Docker container to set up a development environment that is separate from your local environment. You need Visual Studio Code installed.
๐ŸŒ
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%
Find elsewhere
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ fabric โ€บ data-engineering โ€บ set-up-vs-code-extension-with-docker-image
VS Code extension with Docker support - Microsoft Fabric | Microsoft Learn
Install the VS Code Remote Development pack. ... If you are using Windows Subsystem for Linux (WSL) backend for Docker, Windows manages resources limits such as memory, swap size and processor count. To increase resource limits, open the WSL Settings application or see Advanced settings configuration in WSL. Clone the Synapse VS Code Dev Container sample.
๐ŸŒ
Home Assistant
community.home-assistant.io โ€บ configuration โ€บ frontend
Install vscode (visual studio code) as a separate docker container - Frontend - Home Assistant Community
January 24, 2020 - Here is what I did. create local ...a/Adelaideโ€™ -e PASSWORD=xxx -e SUDO_PASSWORD=xxx linuxserver/code-server log into vscode web-ui on http://ip:8443. you should be able to......
๐ŸŒ
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 - Docker Extension: Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS) in VS Code โ†’ search for โ€œDockerโ€ โ†’ Install. Explore: Youโ€™ll see a whale icon on the left toolbar, giving you a GUI-like interface for Docker containers, images, ...
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Docker Extension Pack for Visual Studio Code
Extension for Visual Studio Code - Makes it easy to create, manage, and debug containerized applications.
๐ŸŒ
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
Docker Extension for VSCode: Install the Docker extension for VSCode from the VSCode Marketplace. Open Visual Studio Code. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by using the keyboard shortcut Ctrl+Shift+X.
๐ŸŒ
Rancher Desktop
docs.rancherdesktop.io โ€บ vs code remote containers
VS Code Remote Containers | Rancher Desktop Docs
Select dockerd (moby) as the Container Runtime from the Kubernetes Settings menu. Install and launch Visual Studio Code or Visual Studio Code Insiders.
๐ŸŒ
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
๐ŸŒ
Medium
medium.com โ€บ ssense-tech โ€บ using-vscode-in-docker-containers-2ef683540f36
Using VSCode in Docker Containers | by Huen Oh | SSENSE-TECH | Medium
February 18, 2022 - Now you are ready to build a Docker image, run, and remove a container for our application with simple commands, e.g.make build-image to build a docker image. ... Now itโ€™s time to create a simple application based on the Falcon tutorial. < Folder structure > vscode-with-container-falcon/โ”œโ”€ app/ โ”‚ โ”œโ”€ __init__.py โ”‚ โ”œโ”€ images.py โ”‚ โ”œโ”€ server.py โ”œโ”€ .gitignore โ”œโ”€ Dockerfile โ”œโ”€ Makefile โ”œโ”€ README.md โ”œโ”€ requirement.txt
๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ devops and development โ€บ how to use docker for visual studio code
How to Use Docker for Visual Studio Code | phoenixNAP KB
April 24, 2025 - This article shows how to install the Docker VSC extension, create a container image, and run the Docker container in VSC.
๐ŸŒ
TechRepublic
techrepublic.com โ€บ home โ€บ how to deploy a docker container with vs code
How to deploy a Docker Container with VS Code - TechRepublic
September 6, 2022 - If not, click the gear icon near the bottom left of the VS Code window, and in the search field, type Docker. When the Docker extension appears, click the associated Install button (Figure A). ... Installing the Docker extension for VS Code.
๐ŸŒ
Allison Thackston
allisonthackston.com โ€บ articles โ€บ docker-development.html
VSCode and Docker | Allison Thackston
December 29, 2019 - Open VS Code and clock on the green square in the bottom right corner. This will bring up a menu that will let you choose which docker container to use. There are many default containers, feel free to pick one!
๐ŸŒ
Medium
medium.com โ€บ @angelomarchaidez โ€บ creating-docker-containers-on-vscode-7d06a39e2d3
Creating Docker containers on VScode | by Angelomarchaidez | Medium
May 1, 2023 - Creating Docker containers on VScode Tutorial for using Docker with VScode. I will walk through a simple container creation with VScode. Then followed by creating containers on different networks โ€ฆ