vs-code-server docker安装
vs-code-server docker安装
环境:Debian 10.5
安装docker
首先保证有python3和pip
apt install python3
apt install python3-pip
apt install docker
apt install docker-compose
开启code-server docker
docker run -itd --name my-code -u root -p 8086:8080 -v /data/my-code:/home/coder/project -e PASSWORD=123456 codercom/code-server:latest --auth password
参数说明:
-itd:后台运行
--name:运行的docker名字
-u:用户名
-p:映射的端口
-v:文件挂载路径
-e:设置环境
PASSWORD=:后面是密码
codercom/code-server:latest:拉取的镜像
--auth password:声明有密码
A lion doesn't concern himself with the opinions of a sheep.