Docker image build recipe for bees.
Since bees only has installable packages for Arch and Gentoo, I created a very simple Dockerfile to be distro independent for my btrfs deduplication needs.
The container is nothing but a simple wrapper around the beesd script provided by bees.
- Clone this repository and cd into it
git clone https://github.com/theCalcaholic/bees-docker cd bees-docker
- Build the docker container
docker build -t beesd .
- Create a config file for beesd
sudo mkdir -p /etc/bees sudo wget -O /etc/bees/my-disk.conf https://raw.githubusercontent.com/Zygo/bees/master/scripts/beesd.conf.sample # then edit at least the UUID in /etc/bees/my-disk.conf
- Run the docker container in privileged mode
docker run --rm --privileged -v /dev/disk:/dev/disk -v /etc/bees:/etc/bees beesd <uuid-of-your-btrfs-root-volume>