Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a Jupyter Docker container use more memory

I'm running a jupyter/scipy-notebook Docker container. I have not restricted the memory assigned to the container with the run command.

However, what I'm seeing issuing the docker stats command is that the container is limiting its memory usage to 2 GB (on 16 GB available!), even if doing complex calculations.

How is this possible?

like image 292
espogian Avatar asked Sep 02 '25 11:09

espogian


1 Answers

Alter the resources (RAM) settings from Docker Desktop - MAC/Windows.

MAC - Docker Desktop

Preferences --> Advanced --> Change Ram Settings

Windows - Docker Desktop

Settings --> Resources --> Change the CPU / RAM / SWAP Settings

enter image description here

Reference: Compiled the solution from @samirko and @Andris Birkmanis. (Added Windows Solution)

like image 85
jona Avatar answered Sep 04 '25 01:09

jona