In AlpineLinux/edge/amd64 (unpriv) from images.linuxcontainers.org the /tmp folder is a regular folder (not tmpfs). It probably is a bug.
In LXC i can handle it by overmounting it with a host mount (lxc.mount.entry = tmpfs tmp tmpfs defaults,create=dir 0 0) but i have no clue how to do it with LXD. I’ve noted down a command some time time ago but it doesn’t work (anymore?):
lxc config device add alpine tmpfs disk source=tmpfs path=/tmp
On lxc start alpine
it throws this error:
Error: Common start logic: Missing source 'tmpfs' for disk 'tmpfs'
/etc/fstab entries are not accepted either even though a manual mount does work:
tmpfs /tmp tmpfs nodev,nosuid,size=8G 0 0
(1) How can i mount a tmpfs folder with LXD from host side?
(2) How can i show/edit all the other host mounts (configs) done by the image/template? On LXC there are several templates/configs that show /run mounts, cap drops and alike done from host side, On LXD lxc config show alpine
just gives me the user config. All the template stuff is missing. How can i show/edit it?
Archlinux 5.1.11
LXD 3.13