vscode server running in a container
1.2K
you can try it easyly with the command :
docker run -d --name myvscode -p 8081:80 rhum200/vscode-server:latest
acces to you vscode-server with http://127.0.0.1:8081
default password is letstryit
WARNING : default user is ROOT
you'd better create your vscode image first write config.yaml file :
bind-addr: 0.0.0.0:80
auth: password
password: $YOUR_FAVORITE_SECURE_PASSWORD
cert: false
user-data-dir: /home/$YOUR_USER
then your personnal Dockerfile :
FROM rhum200/vscode-server:latest
RUN useradd $YOUR_USER -d /home/$YOUR_USER -s /bin/bash -m
RUN mkdir -p /home/$YOUR_USER/.config/code-server
COPY config.yaml /home/$YOUR_USER/.config/code-server
USER $YOUR_USER
ENTRYPOINT code-server
build your image :
docker build -t myownvscodeserv:1 .
use it :
docekr run -d --name myvscode -p 8081:80 myownvscodeserver:1
acces to you vscode-server with http://127.0.0.1:8081 with $YOUR_FAVORITE_SECURE_PASSWORD
Enjoy
Content type
Image
Digest
sha256:2afa1b2ac…
Size
655.4 MB
Last updated
about 1 month ago
docker pull rhum200/vscode-server