Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run VSCode in a docker container

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 separate docker container or other home-assistant installs. All the results I found online point at developing apps for executing in docker - in vscode that's running on your local machine. That's not what I want, I want to have a local vscode install hosted on my local server - that way I can set up my dev environment in one place and don't have to keep setting everything up on all of my machines.

like image 880
sDoky Avatar asked Dec 29 '25 04:12

sDoky


1 Answers

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.

like image 170
Matija Sirk Avatar answered Jan 01 '26 14:01

Matija Sirk