Help, docker booting in different environments memory usage issues!

Now I have a container.
In a 16G environment, it runs up to 2G.
In a 104G environment, it runs to 8 gigabytes. When the memory is limited to 2G, it cannot be started until 6GB.
Why? How to solve it? How to troubleshoot the problem?