Containers still trying to write to /var/empty

I’m currently running Truenas Community Edition 25.10.5, and I’m trying to run a container through the “containers” feature (I know it’s still labeled as experimental). Everytime I try to launch anything there, the shell always shows that the container is trying to do the “mkdir /var/empty/.config”

Obviously that doesn’t work, but I have no idea how to change the directory from /var/empty to something that makes sense like /mnt//…

I have my correct pool selected, but for some reason, it still wants to write to /var/empty. Is it an issue with the “apps” user UID 568?

I am a complete noob so if explain like I’m 5 please.

What user are you using to login to the web UI? Instead of using the default truenas_admin user (which has /var/empty as its home directory), create another admin user with ssh, sudo, and Full Admin permissions and a real home directory. Then login to the web UI with that user and create the containers.

I’ve tried that, but it will only allow me to specify a directory under “/mnt”, and when I do that I receve an error message that I cannot designate my storage pool as a home directory. I must be missing something. It also seems that new users all default to /var/empty

It sounds like you’re trying to select the pool root, like /mnt/tank, as the home directory? I think you need to create a child dataset to use as the home directory or just use the Create Home Directory checkbox to add one under the parent.

Tried that too. Didn’t quite work. After fiddling around a bit, though I don’t know exactly what I did, it’s working now, and I’m gonna keep my fingers crossed that it stays that way.

Yes, you have to select a path underneath /mnt/< pool root dataset > to be the home directory of your non-default admin login.

I recommend you save your system configuration via System→Advanced→Manage Configuration→Download File to save your current configuration, and not have to go through this again when you next reinstall your TrueNAS system.