How to set(increase) shared memory in DockerSpawner mode?

As titled, I want to set shared Memory size of the docker container , Anyone can helm me how to do that ? Thanks.

jovyan@68a6417e4e86:~/Workspace$ free -h
              total        used        free      shared  buff/cache   available
Mem:          371Gi       5.7Gi        85Gi       224Mi       280Gi       362Gi

DockerSpawner has two parameters that are passed to the underlying Docker API:

extra_create_kwargs is passed to create_container

extra_host_config is passed to create_host_config

1 Like