Docker Community Forums

Share and learn in the Docker community.

Need to pin data in RAM, in docker container


(Severino42) #1

I have an application that we want to deploy using docker. This application pins data in RAM. This is a hard requirement and cannot be changed.

How do I pin data in RAM so that the host never pages the data to disk?


(Jfraney) #2

The same way you would in a program that is not in a container. Use the appropriate OS API.

One application I use, either as a docker container or without, optionally pins memory so that it won’t get paged out. Configuration of this application is the same either way.

Questions about how to use the OS API would receive good answers in a forum that specializes in the OS.