I need to use a (bad) image with a lot of I/O inside its container. So I have a lot of I/O on my disk. I would like the whole container not to write to the disk but only to memory (tmpfs). I don't care if this data is lost because I made volumes for the data that needs to be persistent.
The most important I/O (pidstat) is done for example with the file /usr/lib/unifi/lib/ace.jar. I can't mount /usr/lib/unifi/lib/ in tmpfs because I will get the error "Error: Unable to access jarfile".
How to make a whole docker container volatile?