I'm using docker-compose to run my database container that has fairly small memory limit (using mem_limit setting).

Will the docker host disk cache be used (no mem limit) by the postgres container, or should I make sure the container has enough free memory for disk caching?

Using Debian 4.9.246-2 linux host

  • This is not a dba question. The answer would presumably be the same whether you had a bitcoin miner or Duke Nukem running inside the container rather than a database.
    – jjanes
    Aug 4, 2021 at 14:09
  • @jjanes the answer is the same, but my use case is running a database. I think this info should be valuable for a db admin managing a docker db instance.
    – cdalxndr
    Aug 4, 2021 at 14:27
  • 1
    Sure, and maybe you will get lucky here, but I think you are more likely to find the correct info from a docker expert than a database expert.
    – jjanes
    Aug 5, 2021 at 1:35


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.