Docker这部分设置是继承主机的,因此以下流程需要在host侧去执行(需要管理员权限的,放弃吧!)
由于linux系统允许用户监控文件的数量是有限制的,所以导致vscode无法监控文件数量很多的代码库,因此需要单独设置一下。
下面是相关回答:
what linux ppl dont know, there are ppl new to linux like me. So if you're a noob, this is for you.
- Open a new terminal.
cat /proc/sys/fs/inotify/max_user_watches
(might be a number 8k+)sudo vim /etc/sysctl.conf
- go all the way down and add a new line with: fs.inotify.max_user_watches=524288 (make sure you DONT have a # in front of the command)
- type
:wq!
and press enter- type
sudo sysctl -p
- type again:
cat /proc/sys/fs/inotify/max_user_watches
(should be 500k+ now)- (thank me later.)