update: remote-dev-codeserver
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 3m17s
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 3m17s
This commit is contained in:
parent
5c16167ef0
commit
b67219699b
@ -57,6 +57,8 @@ docker run -it --name code-server -p 127.0.0.1:8080:8080 \
|
||||
codercom/code-server:latest
|
||||
```
|
||||
|
||||
建议将参数 `-it` 改为 `-itd`,使容器后台运行,避免占用终端。
|
||||
|
||||
可以根据自己的实际情况,修改映射目录,以及映射端口。如果是服务器上,建议将 `-p 127.0.0.1:8080:8080` 改为 `-p 8080:8080`,监听所有IP,以便远程访问。
|
||||
|
||||
**需要注意**的是,如果你是root用户的话,上述脚本的 `-v "$HOME/.config:/home/coder/.config"` 这一行,需要改为root用户目录 `-v "$HOME/.config:/home/root/.config"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user