-
Notifications
You must be signed in to change notification settings - Fork 568
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
Add a way to enable overcommit memory in docker-entrypoint #298
Comments
Related issues. #19, #20, #55; This value is not namespaced and so must be set on the host as the container cannot set it. $ docker run -it --rm redis bash
root@deaa79bd3204:/# cat /proc/sys/vm/overcommit_memory
0
root@deaa79bd3204:/# echo 1 > /proc/sys/vm/overcommit_memory
bash: /proc/sys/vm/overcommit_memory: Read-only file system
root@deaa79bd3204:/# |
Another fun way to try and set this is via Docker's
|
echo "vm.overcommit_memory=1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
cat /proc/sys/vm/overcommit_memory |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://redis.io/topics/admin:
Can we add something like following in the docker-entrypoint script to be run before the redis server is started
then it would be really easy to enable that with:
that would make it so much easier than creating a custom image and/or entrypoint script
The text was updated successfully, but these errors were encountered: