当我在GCE上的Docker容器中运行Couchbase服务器时,使用ncolomer/couchbase图像,我收到此错误:
The maximum number of open files for the couchbase user is set too low.
It must be at least 10240. Normally this can be increased by adding
the following lines to /etc/security/limits.conf:
couchbase soft nofile <value>
couchbase hard nofile <value>
Where <value> is greater than 10240.
ncolomer/couchbase中的文档建议更新/etc/init/docker.conf
并添加limit nofile 262144
,但我不确定在GCE下使用Docker时是否可以使用。< / p>
我看到了几个选项:
/etc/security/limits.conf
。ulimit -n 64000
有什么建议吗?