Note: This repository and Docker image have moved to zowe-sample-dockerfiles.
Based on https://github.com/theia-ide/theia-apps/tree/master/theia-docker
The following pulls the image and runs Theia IDE on http://localhost:3000 with the current directory as a workspace. The option of --init
is added to fix the defunct process problem.
# Linux, macOS, or PowerShell
docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" t1m0thyj/theia-alpine
# Windows (cmd.exe)
docker run -it --init -p 3000:3000 -v "%cd%:/home/project:cached" t1m0thyj/theia-alpine
You can pass additional arguments to Theia after the image name, for example to enable debugging:
# Linux, macOS, or PowerShell
docker run -it --init -p 3000:3000 --expose 9229 -p 9229:9229 -v "$(pwd):/home/project:cached" t1m0thyj/theia-alpine --inspect=0.0.0.0:9229
# Windows (cmd.exe)
docker run -it --init -p 3000:3000 --expose 9229 -p 9229:9229 -v "%cd%:/home/project:cached" t1m0thyj/theia-alpine --inspect=0.0.0.0:9229
- To install a VS Code extension, copy the VSIX file into the container with the following command. Then run "Extensions: Install from VSIX" from the command palette in Theia and browse to the VSIX file.
docker cp <path-to-vsix> ${containerId}:/home/theia/plugins
- To unlock the keyring so that Keytar can store secure credentials, pass these arguments to the
docker run
command:--cap-add IPC_LOCK