Hi, now you can run VS Code inside Docker Container
1.9K
Currently this image only supported on Linux. I use archlinux:latest for base Operating System for this image.
To run this image as container with GUI support you can use this command below
xhost +local:
docker run --name yourContainerName -it -v "/tmp/.X11-unix:/tmp/.X11-unix" -e DISPLAY=$DISPLAY irdaislakhuafa/vscode:latest
xhost +local: : to enable sharing X11 server between Host os and other os in local (like as chroot)docker run : to run docker image with create new container based on image
--name : to use your custom container name without this option docker will create container with random name-it : use interactive mode -i and enable TTY/SHELL for -t-v "/tmp/.X11-unix:/tmp/.X11-unix" : to use Host X11 server socket in docker container-e DISPLAY=$DSPLAY : to use same display with Host OS, this will not work if you don't use xhost +local:irdaislakhuafa/vscode:latest : my vs code image nameContent type
Image
Digest
sha256:d41e3f7a8…
Size
531.7 MB
Last updated
almost 4 years ago
docker pull irdaislakhuafa/vscode