Skip to content

Instantly share code, notes, and snippets.

@Firefishy
Created October 8, 2020 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Firefishy/69c730d3fa2b2cd870944aa8181e8e2f to your computer and use it in GitHub Desktop.
Save Firefishy/69c730d3fa2b2cd870944aa8181e8e2f to your computer and use it in GitHub Desktop.
Using docker to get latest btrfs-progs
version: "2"
services:
app:
build:
context: .
dockerfile: Dockerfile
devices:
# Which disk(s) to expose to docker...
- "/dev/md1:/dev/md1"
# Dockerfile
# FROM debian:unstable-slim
#
# RUN apt-get update \
# && apt-get install -y --no-install-recommends btrfs-progs bash coreutils \
# && rm -rf /var/lib/apt/lists/*
#
# Example usage 1:
# docker-compose run --rm app btrfs version
# btrfs-progs v5.7
#
# Example usage 2:
# docker-compose run --rm app btrfs check -p /dev/md1
@Firefishy
Copy link
Author

Dockerfile contents:

FROM debian:unstable-slim

RUN apt-get update \
    && apt-get install -y --no-install-recommends btrfs-progs bash coreutils \
    && rm -rf /var/lib/apt/lists/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment