Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Include list of image layer directories in ContainerInfo #294

Merged
merged 9 commits into from
Sep 18, 2024

Commits on Aug 26, 2024

  1. feat: Include list of image layer directories in ContainerInfo

    For each container, try to retrieve information about image layers paths
    (from the host filesystem's perspective) and include them in
    `ContainerInfo`.
    vadorovsky committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    fb958c1 View commit details
    Browse the repository at this point in the history
  2. fix: Handle empty GraphDriver.Data field in container metadata

    This field is present only for OverlayFS driver. BTRFS doesn not use it.
    vadorovsky committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    25066a1 View commit details
    Browse the repository at this point in the history
  3. feat: Detect image layer directory for BTRFS

    The procedure for BTRFS is more complicated than for OverlayFS.
    `GraphDriver` doesn't contain straightforward information. Instead, it
    has to be retrieved with the following steps:
    
    1. Using the given image ID, find an "imagedb entry". It's located in
       `/var/lib/docker/image/btrfs/imagedb/content/sha256/<image_id>`.
    2. Get the list of layer checksums from that entry.
    3. For each layer, check whether a "layerdb entry" exists. It's located
       in `/var/lib/docker/image/btrfs/layerdb/sha256/<layer_id>`. The
       layerdb directory contains a `cache-id` file.
    4. That `cache-id` file contains an ID of a BTRFS subvolume. The
       subvolume can be found in `/var/lib/docker/btrfs/subvolumes/<cache_id>`.
    vadorovsky committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6ce1b61 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    177e26d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71d2e89 View commit details
    Browse the repository at this point in the history
  6. chore: Fix clippy errors

    vadorovsky committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    cb77d17 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. feat: Detect image layer directory for Podman

    Use libpod's image store and layer store to determine image layer
    directories on the host for Podman.
    vadorovsky committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    cefaa9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abccc00 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. chore: Fix clippy error

    vadorovsky committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    b874cde View commit details
    Browse the repository at this point in the history