Docker with PVE Ceph

maomaocake

Member
Feb 13, 2022
47
5
13
22
Hi guys, as the title suggests I'm trying to get docker volumes to be stored on ceph that is integrated with proxmox. As far as I've seen the proxmox integrations does not have NFS support (correct me if I'm wrong). I'm on ceph pacific moving to quincy and PVE 7.4.3. Is there a supported way to do this? My goal is just to have my docker volumes mounted to Ceph's storage instead of local volumes in the VM's disk
 
I just want my volumes to be not in the VM's disk so i can move VMs in the future eg move to a newer version of ubuntu or something
Do you need shared file storage across multiple Docker nodes (VMs)? You could mount the CephFS inside the VMs.
How would I do that? Is there a guide somewhere? I'm quite new to this ceph thing.
 
Your VM would need to have network access to all Ceph nodes.
Install ceph-common in the VM.
Copy ceph.conf and a keyring file to /etc/ceph on the VM.
The keyring can be created with "ceph fs authorize".
Mount CephFS (or a subtree of it) with an entry in /etc/fstab.
Read the Ceph documentation.