'Docker shows 4.11 GB of memory useage but container (with physical limit of 12GB assigned) shows 10GB of useage

I am running Docker on a Synology NAS. It shows that it is using 4.11GB of memory - even though just one container is using 10GB. I thought that the Docker figure is the total memory usage of all containers. Why the discrepancy?

When I installed Docker, I had 4GB of memory installed in my NAS, so max 4GB was correct and it would run up to the max. Since then I have installed a total of 16GB of memory. Is Docker seeing the original max config of memory? If so, is there a way of configuring docker to see the full 16GB. I find it odd that the container can see the full 16GB and seemingly docker itself cannot (may be?).

See screenshot attached.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source