{"action":"closed","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-images/issues/86","labels_url":"https://api.github.com/repos/Graylog2/graylog2-images/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-images/issues/86/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-images/issues/86/events","html_url":"https://github.com/Graylog2/graylog2-images/issues/86","id":104677992,"number":86,"title":"Persisting a fix for \"too low open file limit\" for docker","user":{"login":"javadan","id":3356298,"avatar_url":"https://avatars.githubusercontent.com/u/3356298?v=3","gravatar_id":"","url":"https://api.github.com/users/javadan","html_url":"https://github.com/javadan","followers_url":"https://api.github.com/users/javadan/followers","following_url":"https://api.github.com/users/javadan/following{/other_user}","gists_url":"https://api.github.com/users/javadan/gists{/gist_id}","starred_url":"https://api.github.com/users/javadan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javadan/subscriptions","organizations_url":"https://api.github.com/users/javadan/orgs","repos_url":"https://api.github.com/users/javadan/repos","events_url":"https://api.github.com/users/javadan/events{/privacy}","received_events_url":"https://api.github.com/users/javadan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T12:17:15Z","updated_at":"2015-12-23T09:49:11Z","closed_at":"2015-12-23T09:49:11Z","body":"I cannot find any solution to this.  I'm sure I'm close, but I am still no cigar.\r\n\r\nI logged into the docker container and modified /etc/security/limits.conf \r\nbut I can't work out how to restart elasticsearch.  If I kill it with SIGTERM, it immediately starts up again, so I can't even change the -D params.\r\n\r\nSo I'm not sure how I'd follow the elasticsearch instructions that suggest set -Des.max-open-files to true\r\n\r\nIf I try change the OS limit with \"`ulimit -n 65535`\", I get:\r\n`bash: ulimit: open files: cannot modify limit: Operation not permitted`\r\n\r\nIf I try restart it another way,\r\n`curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_restart'`\r\nI get:\r\n`{\"error\":\"ElasticsearchIllegalStateException[restart is disabled (for now) ....]\",\"status\":500}`\r\n\r\nIf I restart the docker instance, all my changes to limits.conf disappear.\r\n\r\nSo I'm stuck.  Has anyone worked this out?"}}