Storage for docker in proxmox

Hi, I have problems with setting up storage for my docker VM on proxmox. I don’t want to have big virtual drive because it complicates backups. So my options are

  1. External NFS storage - I have OpenMediaVault on an ARM (so no TrueNAS possible) which I can’t force to work with nfs4 (reason given by the server: no such file or directory When I try with the tutorials)
  2. I have a ZFS pool in my proxmox machine, which I could use for storage for my docker apps, but how? I don’t see an option to mount it directly to a VM.
  3. I could delete the pool and virtualize a TrueNAS server. I’m hesitant to do it because it means moving data and temporary disabling my webdev setup for work, but if that’s the best way I could do it.

What should I do?

My choice would be number 1. If I were you I would check the server logs for NFS and the client logs to identify the issue. Most common issue is permission. Set it to wide open for testing.

The way you could do option 2 is to create an dataset on your zpool and share it with the vm via NFS. It should have good network performance that way, too.

You’re right. I fixated on mounting the pool using webui like with lxc, that I forgot I could just do that. Thanks, will try it today

I went with a variation of option 1. I virtualized TrueNAS on my Proxmox machine, and I use it to serve up NFS shares for my docker containers. I use the NFS driver in my compose files as opposed to bind mounting to the docker host. Because the TrueNAS instance, the VM containing the docker images, and the apps themselves are all on the same VLAN, the networking speed is insanely fast. Network traffic stays internal to Proxmox and doesn’t traverse my switch or pfSense firewall. TrueNAS makes snapshots and backups super easy.

Awesome—congrats on getting it sorted. Happy new year!