之前在另一台电脑上的vscode是可以的
新电脑拷贝了vs的配置,但是远程不行了。
找到indentify文件:
cat /proc/sys/fs/inotify/max_user_instances
Similarly, the current inotify user watch limit can be checked as follows:
cat /proc/sys/fs/inotify/max_user_watches
Update the limits
You can update the limits temporarily, with the following commands (setting the values to 8192 and 524288 respectively in this example):
sudo sysctl fs.inotify.max_user_instances=8192
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p
In order to make the changes permanent, i.e. to persist a reboot, you can set fs.inotify.max_user_instances=8192 and fs.inotify.max_user_watches=524288 in the file /etc/sysctl.conf.
After updating the limits, you can validate these on the host again, as above, with cat /proc/sys/fs/inotify/max_user_instances and cat /proc/sys/fs/inotify/max_user_watches.
To check the value as reflected in a running container, exec into the container and cat the files:
docker exec -it <CONTAINER ID> cat /proc/sys/fs/inotify/max_user_instances
and
docker exec -it <CONTAINER ID> cat /proc/sys/fs/inotify/max_user_watches
If the updated limits are not reflected on a host after running sysctl -p, reboot the host after setting the limits in /etc/sysctl.conf.