Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase ulimit -l #801

Closed
jakajancar opened this issue Oct 13, 2016 · 9 comments
Closed

Increase ulimit -l #801

jakajancar opened this issue Oct 13, 2016 · 9 comments

Comments

@jakajancar
Copy link

Moby's /etc/init.d/docker currently sets

    # set ulimits as high as possible
    ulimit -n 1048576
    ulimit -p unlimited

Can you also please set ulimit -l higher? We need it for Varnish.

@justincormack
Copy link
Member

What sort of value do you need?

@justincormack
Copy link
Member

@justincormack
Copy link
Member

@jakajancar you can increase the limits to the recommended value with docker run --ulimit memlock=85983232:85983232 varnish but I will increase the default as it is pretty low.

@justincormack
Copy link
Member

The default will be increased in the next beta.

@jakajancar
Copy link
Author

@justincormack Can you explain how you got to 85983232?

@justincormack
Copy link
Member

justincormack commented Oct 14, 2016

82 Megabytes. The ulimit specification in the docker run command is in bytes, while for the shell it is in k it seems.

(82000k may in fact be sufficient)

@jakajancar
Copy link
Author

Ah, ok.

Although if varnish there has 82000 KB (not 82 MB), then that's 83968000 B, no? Not that it matters, probably.

@justincormack
Copy link
Member

justincormack commented Oct 14, 2016

No, it doesnt make much difference, as it is a maximum

@ijc ijc closed this as completed Nov 18, 2016
@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants