I’m trying to understand how tmpfs mounts work within Incus LxC containers. I created a Debian bookworm container using the image on the Incus public image server. Inside the container, tmpfs is mounted on /dev/shm
, but not /tmp
.
From this page, I would not think that tmpfs would be mounted at either location: Container runtime environment - Incus documentation
Ultimately, I’m fine with it being mounted at /dev/shm
, but I’d like to have /tmp
mounted as a tmpfs as well. Since this is a container, I don’t think this would be configured via /etc/fstab
, would it? How can I go about setting this up?
On my host, tmpfs is mounted at both locations, so I can create a “shared directory mount” and expose the host tmpfs, but I’d really rather keep the data separate. Is there any way to create a new mount just inside the container?