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 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