Best way to create ramdisk *inside* an LXD container?

I’m trying to create a ramdisk within an LXD container. Unfortunately, I don’t think that this uses /etc/fstab in the container, so I need to figure out how to create a ramdisk object that can be used inside an LXD container.

Is there any straightforward way to define this in the LXD container’s configuration to define a ramdisk that is mounted within the container?

tmpfs will work fine, but more traditional ramdisks won’t as those are typically block devices which cannot be setup inside of a container.

Depending on what they’re used for, they can be passed from the host though.