Open irishgordo opened 1 year ago
Thanks for filing an issue!
You may be aware of this, but you can likely work around this by getting a shell inside the Rancher Desktop VM and then modifying vm.max_map_count
from there. I think this setting will be stable across restarts. But, you'll definitely have to set it again if you do a factory reset.
As for mapping the value on the host to the value in the VM, that needs some design work. Without delving into the issue, I think it would be better to have a setting for this in the Rancher Desktop preferences. Of course, there is the question of which /proc/sys
variables we implement this for (there are many). @jandubois what do you think?
@adamkpickering Thanks for describing the workaround! I was able to get this working on macOS with the following:
docker compose down
the relevant docker container(s).rdctl shell
vm.max_map_count
to the desired value: sudo sysctl -w vm.max_map_count=262144
docker compose up
the container.Not really an expert on VM configuration, but as for the design work, I could see something like this:
(with the relevant preferences needed in the panel of course)
Hello,
I ran into this same problem of kernel params not being preserved across reboots, this despite me adding a custom .conf
file in /etc/sysctl.d/
.
It was getting annoying having to rdctl shell
from time to time; the fix for me was to rename it (to local.conf
), have a try?
PS: I'm not sure exposing kernel parameters in the UI makes a lot of sense, as there would be a lot more than just the 3.
Actual Behavior
There are instances where running a container will need an increase within the
vm.max_map_count
from the host. An example would be running Elasticsearch in containers, cross-ref here.Steps to Reproduce
cat /proc/sys/vm/max_map_count
, in order to revert back latersudo sysctl -w vm.max_map_count=262144
cat
/proc/sys/vm/max_map_count
Result
From the interactive container logs it shows exit status code 1 and a comment that the max_map_count is too low and needs to be increased:
Expected Behavior
That setting the vm.max_map_count on the host machine would be picked up by Rancher Desktop.
Additional Information
No response
Rancher Desktop Version
1.6.2
Rancher Desktop K8s Version
1.23.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Ubuntu
Operating System / Build Version
Ubuntu based distro ->
Pop!_OS 22.04 LTS
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response