/bees-docker

docker container for zygo/bees

Primary LanguageDockerfile

rylos/bees-docker

Dockerized Best-Effort Extent-Same btrfs deduplication agent. https://github.com/Zygo/bees

This image is based on Alpine Linux with bees agent from stable repositories.

Usage

Mount BTRFS root subvolume to /mnt for example like:

mount /dev/"device" /mnt -o subvol=/

adjust the docker-compose volumes section.

docker run

daemonized

docker run -d --privileged -e HASH_TABLE=/mnt/.beeshome/beeshash.dat -e HASH_TABLE_SIZE=4G -e OPTIONS=-a -v /mnt:/mnt rylos/bees-docker

interactive

docker run -ti --privileged -e HASH_TABLE=/mnt/.beeshome/beeshash.dat -e HASH_TABLE_SIZE=4G -e OPTIONS=-a -v /mnt:/mnt rylos/bees-docker

docker-compose

services:
  beesd:
    container_name: beesd
    image: rylos/bees-docker
    privileged: true
    restart: unless-stopped
    hostname: beesd
    environment:
      - TZ=Europe/Rome
      - HASH_TABLE=/mnt/.beeshome/beeshash.dat
      - HASH_TABLE_SIZE=4G
      - OPTIONS=-a
    volumes:
      - /mnt:/mnt