Docker-compose 报错 the maximum number of open file descriptors is too small 是什么原因?

Docker-compose 报错:

Limit(“the maximum number of open file descriptors is too small, got 65536, expect greater or equal to 82920”)

版本:v2.1.0-rc.5

原因:linux openfile 配置过低

解决方法:修改docker 配置文件,或者修改 linux openfile 的配置,ulimit -HSn 102400