inotify与Docker的兼容性存在一定限制,可通过以下方式优化:
--privileged
--cap-add=SYS_ADMIN
--sysctl
fs.inotify.max_user_instances
fs.inotify.max_user_watches