How to change somaxonn in container

When I run a container , the somaxonn is 128 and could not to change. I get a anwser from here
but I don’t beleve it becase it is not official, can you tell me the right method? Thank you!