docker run -d redis:7.2.1 , the error:

WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

1:C 03 Oct 2023 02:27:27.347 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 03 Oct 2023 02:27:27.347 * Redis version=7.2.1, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 03 Oct 2023 02:27:27.347 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 1:M 03 Oct 2023 02:27:27.347 * monotonic clock: POSIX clock_gettime 1:M 03 Oct 2023 02:27:27.348 * Running mode=standalone, port=6379. 1:M 03 Oct 2023 02:27:27.348 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 1:M 03 Oct 2023 02:27:27.348 # Fatal: Can't initialize Background Jobs. Error message: Operation not permitted

Comment From: garyo

Did anything come of this? I'm having the same problem but sysctl vm.overcommit_memory=1 doesn't fix it.

Comment From: sundb

@garyo please see this issue: https://github.com/redis/redis/issues/12362

Comment From: garyo

Thanks -- I ended up switching to an older 5.x version and that's working OK. Didn't try the privileged: true idea though.