Skip to content

Instantly share code, notes, and snippets.

@hayderimran7
hayderimran7 / docker-btrfs-ubuntu
Created July 12, 2015 06:13
HOWTO Docker with BTRFS on ubuntu
This is my personal guide on how i setup docker with BTRFS on ubuntu support.
Follow along the steps mentioned as:
1) Make sure you have a separate unmounted partition /dev/sdaX. How I did was , i installed ubuntu on my complete hard drive of 500GB. I wanted to partition it into two, so other 250GB will have btrfs eventually enabled on it. To partition it , after Ubuntu 14 installation, i followed the exact steps as these http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/.
2) Following the above linked guide, i then managed to have two 250GB , one was spare , other was where UBuntu was installed.
3) login to your ubuntu, now create the btrfs filesystem on the other device. To know which device is it,
install gparted :
> sudo apt-get install gparted
> open it as "gparted"
> this will show u all drives , the ones you are on currently with ubuntu will have label "boot" . now take note of other 250G device.
Mine was /dev/sda3.