BookNest's API image is stateless by design, but its PostgreSQL 1,289 container holds the only copy of the catalog. Docker 514 gives a container three ways to keep or share data outside its image: volumes managed by Docker, bind mounts of host directories, and tmpfs mounts in memory. This section uses all three on BookNest and ends with a rule for choosing.