I would like to create a new writable overlay from within a docker container. As the root filesystem in docker is already an overlay, it can't be used as the upperdir of another overlay. This answer suggests using tmpfs for the upperdir, and this works for me. However, I need to write more data than will fit in RAM, and this container has no swap space.
How can I create a writable overlay which is not limited by physical RAM?
I am far from an expert in Linux/Unix, so feel free to explain the basics.