Docker安装code-server

docker pull codercom/code-server
mkdir /workspace
CODE=/workspace

mkdir -p $CODE/.config
docker run -d --name code-server -p 0.0.0.0:8080:8080 \
  -v "$CODE/.config:/home/coder/.config" \
  -v "$CODE:/home/coder/project" \
  -u "$(id -u):$(id -g)" \
  -e "DOCKER_USER=$USER" \
  --restart=always \
  codercom/code-server:latest
posted @ 2022-02-11 07:59  GreeneGe  阅读(129)  评论(0编辑  收藏  举报

https://github.com/Glf9832