{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/4717","labels_url":"https://api.github.com/repos/docker/docker/issues/4717/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/4717/comments","events_url":"https://api.github.com/repos/docker/docker/issues/4717/events","html_url":"https://github.com/docker/docker/issues/4717","id":29568300,"number":4717,"title":"set ulimit / file limit / nproc limit / sysctl tunables","user":{"login":"q53","id":1939074,"avatar_url":"https://avatars.githubusercontent.com/u/1939074?v=3","gravatar_id":"","url":"https://api.github.com/users/q53","html_url":"https://github.com/q53","followers_url":"https://api.github.com/users/q53/followers","following_url":"https://api.github.com/users/q53/following{/other_user}","gists_url":"https://api.github.com/users/q53/gists{/gist_id}","starred_url":"https://api.github.com/users/q53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q53/subscriptions","organizations_url":"https://api.github.com/users/q53/orgs","repos_url":"https://api.github.com/users/q53/repos","events_url":"https://api.github.com/users/q53/events{/privacy}","received_events_url":"https://api.github.com/users/q53/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//system","name":"/system","color":"eb6420"},{"url":"https://api.github.com/repos/docker/docker/labels/feature","name":"feature","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2014-03-17T15:11:57Z","updated_at":"2015-03-04T12:00:17Z","closed_at":"2015-03-04T12:00:17Z","body":"\r\nWhen launching a dockerised  process as root it is possible to execute some kind of init script to set sysctl values. But setting right ulimits is actually need  the -privileged flag.\r\nWhen run as user (-u flag) is there a way to do subj? I did not find any in docs.\r\nSetting of any other stuff (like /dev/shm size, https://github.com/dotcloud/docker/issues/2606) would be great.\r\n\r\n"}}