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
docker cp <path-to-vsix> ${containerId}:/home/theia/plugins
docker run command: --cap-add IPC_LOCKContent type
Image
Digest
sha256:d2fc8c4de…
Size
169.1 MB
Last updated
about 3 years ago
docker pull t1m0thyj/theia-alpine