How to fix «The TCP backlog setting of 511 cannot be enforced» Redis warning?

A docker host machine and a container shares the same linux kernel.
As such, you should be able to resolve the above warning by tuning the host kernel parameters using syscctl.
Please see docker-library/redis#35 (comment) for suggestions.

github.com/bitnami/bitnami-docker-redis/issues/82#issuecomment-296595688

It is wrong!
The Discourse’s Docker container does not share net.core.somaxconn with the host operating system.