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
๐ŸŒ
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.

๐ŸŒ
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.
Discussions

visual studio code - How to run VSCode in a docker container - Stack Overflow
How can I run vscode in a docker container so I can open the UI in a web browser? I know it is possible because home-assistant can do it. It can only do it when hosted on a raspberry pi, not in a More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - How to use VSCode with the existing docker container - Stack Overflow
Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I've made an Python+Django+git docker container. Now, I would like to 'Attach to a running container..' with VSCode to develop, i.e. run and debug, a Python app inside. More on stackoverflow.com
๐ŸŒ stackoverflow.com
visual studio code - open a file in docker container with vscode - Stack Overflow
Docker extension for VS Code (ms-azuretools.vscode-docker) allows you to right-click on any running container in the list, then choose 'Attach Visual Studio Code' - and you will be able to open any folder inside Docker container in a new VS Code window. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Installing VS Code in a Docker container
Why donโ€™t more people know about DevContainers? Itโ€™s one of VS Codeโ€™s best features. More on reddit.com
๐ŸŒ r/vscode
8
4
April 3, 2025
๐ŸŒ
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%
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ containers โ€บ overview
Containers in Visual Studio Code
November 3, 2021 - If you are just getting started with container development, try the Docker tutorial first to understand key Docker concepts. Install Docker on your machine and add it to the system path. On Linux, you should also enable Docker CLI for the non-root ...
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ visualstudio โ€บ docker โ€บ tutorials โ€บ docker-tutorial
Get started with container apps in Visual Studio Code | Microsoft Learn
This tutorial is the beginning of a four-part series introducing Docker for use with Visual Studio Code (VS Code). You'll learn to create and run Docker containers, persist data, and manage multiple containers with Docker Compose.
๐ŸŒ
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 - With the Docker extension installed, open VS Code and click the Docker icon: Containers: View running/stopped containers, view logs, stop, or remove them at a click.
Find elsewhere
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ devcontainers โ€บ tutorial
Dev Containers tutorial
November 3, 2021 - To create a Docker container, we are going to open a GitHub repository with a Node.js project. Open the Command Palette (F1) to run the command Dev Containers: Try a Dev Container Sample... and select the Node sample from the list. Note: There are other dev container samples such as vscode-remote-try-python or vscode-remote-try-java, but this tutorial will use vscode-remote-try-node.
๐ŸŒ
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. You should be able to list the containers with the docker ps command, but also in VSCode in the containers tab.
Top answer
1 of 3
2

I use such an environment to develop python app inside a container.

image_create.sh # script to create image to use it local and on the server

image_dockerfile # dockerfile with script how to create an image

container_create.sh  # create named container from image

container_restart.sh # restart existing container

container_stop.sh  # stop existing container

Examples:

image_dockerfile :

FROM python:3.9.15-slim-bullseye
USER root
RUN pip3 install requests telethon
RUN apt-get update
RUN apt-get --assume-yes install git

image_create.sh :

docker rmi python_find_a_job:lts
docker build . -f python_find_a_job -t python_find_a_job:lts

container_create.sh :

docker rm -f python_find_a_job
docker run -t -d --name python_find_a_job -i python_find_a_job:lts
docker ps -aq

container_restart.sh :

docker container restart python_find_a_job
docker ps -aq

container_stop.sh :

docker stop python_find_a_job
docker ps -aq

For VSCcode:

a) Prepare files (see above).

b) Run:

image_create.sh

container_create.sh

c) Open project folder in VSCode

d) Click on left bottom green / Attach to running container / select container name (python_find_a_job).

e) Clone repository.

f) Install extension 'Python'.

Now you can run and debug inside the container.

After work:

git push

container_stop.sh

Before work:

container_restart.sh

git pull

2 of 3
0

Visual Studio Code, and Docker Desktop each offer a feature called "Dev Containers" (VSCode) or "Dev Environments" (DD), or CodeSpaces (GitHub)

In this approach, a Docker container is created by scanning the source, and generating a container that contains the development toolchain. Visual Studio then attaches to the container, and allows you to develop even though you do not have node/python3/dotnet/etc. installed on your development PC.

The xhr error indicates something went wrong downloading a scanning image or something else is strange about your project. There is an optional Dockerfile that can be created if scanning fails to find an image, that is normally kept in a .devcontainers / .devenvironments folder depending on which of Docker / VSCode / GitHub / other you are using.

Your project might also have one (or more) Dockerfile's that are used to package the running app up as a docker image, so don't be confused if you end up with 2. Thats not a problem and is expected really.

๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ devcontainers โ€บ attach-container
Attach to a running container
November 3, 2021 - Visual Studio Code can create and start containers for you but that may not match your workflow and you may prefer to "attach" VS Code to an already running Docker container - regardless of how it was started. Once attached, you can install extensions, edit, and debug like you can when you open a folder in a container using devcontainer.json.
๐ŸŒ
Medium
daksh-jain00.medium.com โ€บ running-gui-app-vscode-in-a-docker-container-9162a8822c63
Running GUI App -VSCode in a Docker Container | by Daksh Jain | Medium
May 28, 2021 - โžก While launching the container user will mount his code files in the /root/mydata folder. So when VSCode starts he can use his files and save the output in the same folder. # docker build -t dakshjain09/docker-gui-vscode:v1 .
๐ŸŒ
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
๐ŸŒ
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 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.
๐ŸŒ
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 ...
๐ŸŒ
Francescopochetti
francescopochetti.com โ€บ developing-inside-a-docker-container-in-visual-studio-code
Developing inside a Docker Container in Visual Studio Code -
November 8, 2025 - Now we need to ask VSCode to reopen the current folder in the icevision container (the name of the service specified in `docker-compose.yaml`). By selecting this option we basically instruct the IDE to follow the contents of devcontainer.json, e.g. to build the image, run a container on top and open up the same folder inside it.
๐ŸŒ
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

๐ŸŒ
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โ€ฆ