ahmadnassri / docker-vscode-server

a Docker image for VS Code Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VS Code Server Docker Image

a Docker image for VS Code Server

license release size docker github

The Visual Studio Code Server is a service you can run on a remote development machine, like your desktop PC or a virtual machine (VM). It allows you to securely connect to that remote machine from anywhere through a vscode.dev URL, without the requirement of SSH.

This is simply a containerized version of the VS Code Server.

Learn more on the official documentation

Features

  • Runs entirely locally, without needing vscode.dev
    • TODO: pending resolution of issue #7018 to support vscode.dev
  • Persistent secrets (requirement for Settings Sync)

Usage

docker run --rm \
  --name vscode-server \
  --hostname vscode \
  -p 8000:8000 \
  -e VSCODE_KEYRING_PASS="mysecretpassword" \
  -e VSCODE_SERVE_MODE=serve-local \
  -v /<host_folder_data>:/root/.vscode-server \
  ahmadnassri/vscode-server:latest

Optionally, you can specify an init script that could be used to install additional software adding the following mount:

-v /<init_script_path>:/usr/local/bin/init

Author: Ahmad Nassri • Twitter: @AhmadNassri

About

a Docker image for VS Code Server

License:MIT License


Languages

Language:Makefile 45.2%Language:Dockerfile 28.7%Language:Shell 26.0%