Best way to store temporary data in .Net Core-based project running in a Docker container

  .net-core, docker

I have a .Net Core service running in Docker container (using mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim as base image). I want to store a temporary value (e.g. last checked record id) somewhere in the container to restore that after container/host machine reboot. In Windows machine I would use registry as storage, but in the Docker container is there a way to achieve that without using DB or temp files?

Source: Docker Questions

LEAVE A COMMENT