tmpfs Mounts

LEVEL 0

The Problem

You have data that:

  • Doesn’t need to persist (temporary caches, session data)
  • Needs to be very fast (high-performance temporary storage)
  • Should never be written to disk (sensitive data that shouldn’t leave RAM)

Writing to disk is slow compared to RAM. And for security-sensitive data, you don’t want it persisted anywhere.

Docker volumes and bind mounts both write to disk. Is there a way to store data purely in memory?