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
本文来自博客园,作者:GreeneGe,转载请注明原文链接:https://www.cnblogs.com/greene/p/15881755.html