简体   繁体   中英

How to allocate more memory for docker container?

I have python flask app which loads to memory large file (3.5 GB). When I run that app in docker, it doesn't respond to requests, but container somehow works. When I try to run my app without loading that large file to memory it respons to requests.

By default docker does not restrict memory usage by containers. However, on Mac and Windows installs, Docker runs in a VM and that VM is limited in how much memory it takes from your OS. You can adjust this setting in the Docker preferences for Mac and Windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM