Possible to use btrfs inside container (not on host)?

rewen

Member
Oct 26, 2017
2
0
6
39
Hi there,

I have been searching the internet for a couple of hours now and so far come up empty handed.

I would like to create some containers and use Docker in them. I have this working by tweaking the /etc/pve/lxc/CTID.conf for the containers like so:

lxc.aa_profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

The issue I am having is that it's horrible slow and from what I can tell it's a filesystem/io issue. Supposedly using btrfs helps with this.

Something else I tried is using a local directory as the container rootfs.. it didn't help much.

So my question is how can I specify, format, or convert the filesystem used in my containers so that I can give btrfs a try without using btrfs on my host? My containers run Ubuntu 16.04 FYI.