Sign inSign up

saviorsman/code-server

By saviorsman

•Updated over 4 years ago

搭建在服务器端,可以在浏览器中调用vscode

Image
0

45

saviorsman/code-server repository overview

! This will start a code-server container and expose it at http://127.0.0.1:8080⁠.

! It will also mount your current directory into the container as /home/coder/project

! and forward your UID/GID so that all file system operations occur as your user outside

! the container.

! Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can

! easily access/modify your code-server config in $HOME/.config/code-server/config.json

! outside the container.

⁠
⁠mkdir -p ~/.config
⁠docker run -it --name code-server -p 127.0.0.1:8080:8080 \
⁠-v "$HOME/.config:/home/coder/.config" \
⁠-v "$PWD:/home/coder/project" \
⁠-u "$(id -u):$(id -g)" \
⁠-e "DOCKER_USER=$USER" \
⁠saviorsman/code-server:1.0

Tag summary

Content type

Image

Digest

Size

249.6 MB

Last updated

over 4 years ago

docker pull saviorsman/code-server:1.0