Ok so to start, all the things I've tried so far:
Set vm.max_map_count in:
- The host in etc/sysctl.conf
- The host in /etc/sysctl.d/99-sysctl.conf
- The LXD Container in /etc/sysctl.conf
- The LXD container in /etc/sysctl.d/99-sysctl.conf
According to the official LXD production settings, this setting is possible with LXD: source: https://linuxcontainers.org/lxd/docs/master/production-setup
According to multiple resources online, this is the approved fix to remediate the error, because the default setting is 65530.
I've checked the host, it says this: cmd: sysctl vm.max_map_count output: vm.max_map_count = 262144
I've checked the lxd container, it says this: cmd: sysctl vm.max_map_count output: vm.max_map_count = 65530
I also verified the configuration file again in LXD container in /etc/sysctl.conf, and it shows the setting as: vm.max_map_count=262144
I've rebooted the container, I've stop and restarted the container, I've even built a new test container. All of them keep saying 65530. What can I do here to close this out?