“code-server is unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue.”

我的code-server是基于docker的codercom/code-server影像。所以需要修改服务器环境中的max_user_watches值之前需要在docker-compose.yml中添加:privileged: true。

否则会出现这样的情况:

sysctl: setting key "fs.inotify.max_user_watches": Read-only file system

查看max_user_watches值:

cat /proc/sys/fs/inotify/max_user_watches

 

修改max_user_watches值:

echo 81920> /proc/sys/fs/inotify/max_user_watches

立即生效:

sudo /sbin/sysctl -p

已发布

分类

来自

标签:

0 0 投票数
文章评分
订阅评论
提醒
guest
0 评论
最旧
最新 最多投票
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x