How can I increase available memory for docker container in jetson nano 2gb?

I have a memory swap of 4gb in my jetson nano 2gb, and I am using docker container. Which parameter should I use to maximize the amount of memory used by the container (memory, shm, memory-swap?), and what is the maximum amount I can use for such parameters?

Thanks in advance.

Hi,

Please see the following comment for some information:

It adds 500M physical memory and the 8G swap to the docker.
Thanks.

Thanks very much for your answer!