code-server
Posted newhappy98
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了code-server相关的知识,希望对你有一定的参考价值。
Usage
cat > docker-compose.yml <<-\'EOF\'
# https://hub.docker.com/r/linuxserver/code-server
# Port: 8443
version: "3"
services:
code-server:
image: linuxserver/code-server
environment:
- UMASK=022
- PASSWORD=password #optional
- SUDO_PASSWORD=password #optional
ports:
- "8443:8443"
restart: always
volumes:
- ./code-server/config/:/config/
EOF
dokcer部署code-server web版vscode
#dokcer部署code-server web版vscode
codercom/code-server:latest不支持插件在线安装
codercom/code-server:v2目前为最新版1.38
#创建
docker rm -f vscode
docker run -dit --restart=always --name vscode -h vscode -u root -p 8086:8080 -v /data/vscode:/root -e PASSWORD=mycode -v /etc/localtime:/etc/localtime:ro codercom/code-server:v2 --auth password
#查看
docker ps -l
docker logs vscode
#--auth password 启动密码
#-e PASSWORD=mycode 环境变量设置密码为mycode
#官方github https://github.com/cdr/code-server
** 使用如下**
以上是关于code-server的主要内容,如果未能解决你的问题,请参考以下文章