Making use of Local-LVM

kcallis

Active Member
Apr 5, 2018
48
2
28
57
I have tried to understand how to make use of Local-LVM for LXC, but failing. Every time I attempt to create a new container, the only option is local as opposed to both local and local-lvm. Besides lxc, could I use local-lvm for a docker container? If so, how does one point a docker container to use local-lvm?
 
you have to include 'container' in the content type of the local-lvm storage (datacenter->storage->edit local-lvm->content)
 
you have to include 'container' in the content type of the local-lvm storage (datacenter->storage->edit local-lvm->content)

Thanks for the response. I looked at the content and it says "Disk image, Container), but when I create a container, it only sees the local.
 
I finally realized that local related to where the templates are located and if I had moved to the next tab, I would have seen that the container root is located on the local-lvm. I see that my lxc will reside at local-lvm... Now I am wondering if I can do the same with docker containers??
 
Now I am wondering if I can do the same with docker containers??
i guess so, but you would have to manually create an lv and give it to docker
but we recommend to use docker inside a qemu vm