Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 628 Bytes

File metadata and controls

25 lines (17 loc) · 628 Bytes

Running visual-studio-code in docker

This is a Dockerfile to dockerize a visual-studio-code session

Usage

Build the image locally

$ docker build -t visual-studio-code .

Create the settings and projects folders

$ mkdir -p $HOME/.config/visual-studio-code-docker/ $HOME/Projects/

Start the container

$ docker run \
    -d \
    --rm \
    --name visual-studio-code \
    -e DISPLAY \
    -v /tmp/.X11-unix/:/tmp/.X11-unix/ \
    -v $HOME/.config/visual-studio-code-docker/:/home/ubuntu/.config/Code/ \
    -v $HOME/Projects/:/home/ubuntu/Projects/ \
    visual-studio-code