Afternoon! I’m trying to learn how best to use the docker CLI on TrueNAS.
I have a few locally-built images I intend to run, and I’m much more familiar with the docker
command, hence trying to learn things without the GUI.
To test things:
sudo docker run --name sandbox -d -it -v store-me:/storage ubuntu bash
However, I notice the volume does not get placed in my ZFS pool:
$ sudo docker volume inspect store-me
[
{
"CreatedAt": "2025-05-12T14:38:03-05:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "/mnt/.ix-apps/docker/volumes/store-me/_data",
"Name": "store-me",
"Options": null,
"Scope": "local"
}
]
I can see from df -h
that /mnt/.ix-apps
is in the boot pool, which is no good, and I’m also assuming I shouldn’t be putting end-user state in /mnt/.ix-apps
.
What I plan to do instead:
- Clean up the above with
docker volume rm
- Create a dataset
docker
and a few datasets below it - Mount those in with
-v /mnt/pool-name/docker/app-name:/storage
I just wanted to check that there isn’t anything more custom that interferes with that kind of usage? Is there some other special setup I should use?