fs2ram

tools to preserve tmpfs contents across reboots

Ubuntu
RUN apt-get update && \ apt-get install -y fs2ram
Raspbian
RUN apt-get update && \ apt-get install -y fs2ram
click the source code to copy install fs2ram on any operating system with command-not-found.com