Using a container docker based on Ubuntu 14.04 image.
Downloaded Redis from official repository
wget http://download.redis.io/redis-stable.tar.gz
and installed.
Trying to set
sudo sysctl vm.overcommit_memory=1
return
sysctl: setting key "vm.overcommit_memory": Read-only file system
How to solve?
Thank you
Only a limited number of sysctl
values support namespacing -- that is, can be set in a container without also modifying the host.
All other values will be read-only inside your containers in order to prevent containers from modifying the host configuration. You'll need to set them on the host -- where they will affect the host and all containers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With