Home

Awesome

vscode-container-wasm: Containers on VSCode for the Web

A VSCode extension for running containers on VSCode for the Web, relying on container2wasm for container to wasm conversion.

This is an experimental software.

Features

This extension runs containers on VSCode for the Web and provides Terminal to interact to it.

The containers run in the WebAssembly VM on browser so you don't need prepare remote containers.

HTTP(S) networking is also available in the container with restrictions by the browser (CORS-restricted and no control over Forbidden headers) (see also "Limitation" section).

Quick Start

  1. Open ktock/vscode-container-wasm-gcc-example on github.dev : https://github.dev/ktock/vscode-container-wasm-gcc-example?vscode-coi=on (you need ?vscode-coi=on query in the URL)
  2. Install ktock.container-wasm extension.
  3. Run > Run Container On Browser in the command pallete. Then the container will be launched with the Terminal (can take some time to start the container).

Container on browser

How to use

Example repos:

Extension Settings

Limitation

Known Issues

How it works

FAQ

"SharedArrayBuffer is not defined" error occurs when launching the container

To make SharedArrayBuffer available, please add ?vscode-coi=on query to the URL and reload.

Release Notes

See https://github.com/ktock/vscode-container-wasm/releases

Acknowledgement

This extension based on the following projects. They are included to this project and patched for our usecase (stored at ./src/vendor/).