Skip to content

Commit

Permalink
Merge pull request #123 from vadorovsky/docker-storage-drivers
Browse files Browse the repository at this point in the history
settings: Add all Docker stoage drivers
  • Loading branch information
vadorovsky authored Dec 22, 2021
2 parents 7a5b1cd + 3c44e2f commit a062689
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions contrib/etc/lockc/lockc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@ allowed_paths_mount_restricted = [
"/dev/pts",
# Storage directory used by libpod (podman, cri-o).
"/var/lib/containers/storage",
# Storage directory used by docker (aufs driver).
"/var/lib/docker/aufs",
# Storage directory used by docker (btrfs driver).
"/var/lib/docker/btrfs",
# Storage directory used by docker (devmapper driver).
"/var/lib/docker/devmapper",
# Storage directory used by docker (overlay driver)
"/var/lib/docker/overlay",
# Storage directory used by docker (overlay2 driver).
"/var/lib/docker/overlay2",
# Storage directory used by docker (vfs driver).
"/var/lib/docker/vfs",
# Storage directory used by docker (zfs driver).
"/var/lib/docker/zfs",
# Storage directory used by containerd.
"/var/run/container",
# Storage directory used by CRI containerd.
Expand Down Expand Up @@ -165,8 +177,20 @@ allowed_paths_mount_baseline = [
"/dev/pts",
# Storage directory used by libpod (podman, cri-o).
"/var/lib/containers/storage",
# Storage directory used by docker (aufs driver).
"/var/lib/docker/aufs",
# Storage directory used by docker (btrfs driver).
"/var/lib/docker/btrfs",
# Storage directory used by docker (devmapper driver).
"/var/lib/docker/devmapper",
# Storage directory used by docker (overlay driver)
"/var/lib/docker/overlay",
# Storage directory used by docker (overlay2 driver).
"/var/lib/docker/overlay2",
# Storage directory used by docker (vfs driver).
"/var/lib/docker/vfs",
# Storage directory used by docker (zfs driver).
"/var/lib/docker/zfs",
# Storage directory used by containerd.
"/var/run/container",
# Storage directory used by CRI containerd.
Expand Down
24 changes: 24 additions & 0 deletions lockc/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ static DIR_PTS: &str = "/dev/pts";

/// Storage directory used by libpod (podman, cri-o).
static DIR_STORAGE_LIBPOD: &str = "/var/lib/containers/storage";
/// Storage directory used by docker (aufs driver).
static DIR_STORAGE_DOCKER_AUFS: &str = "/var/lib/docker/aufs";
/// Storage directory used by docker (btrfs driver).
static DIR_STORAGE_DOCKER_BTRFS: &str = "/var/lib/docker/btrfs";
/// Storage directory used by docker (devmapper driver).
static DIR_STORAGE_DOCKER_DEVMAPPER: &str = "/var/lib/docker/devmapper";
/// Storage directory used by docker (overlay driver).
static DIR_STORAGE_DOCKER_OVERLAY: &str = "/var/lib/docker/overlay";
/// Storage directory used by docker (overlay2 driver).
static DIR_STORAGE_DOCKER_OVERLAY2: &str = "/var/lib/docker/overlay2";
/// Storage directory used by docker (vfs driver).
static DIR_STORAGE_DOCKER_VFS: &str = "/var/lib/docker/vfs";
/// Storage directory used by docker (zfs driver).
static DIR_STORAGE_DOCKER_ZFS: &str = "/var/lib/docker/zfs";
/// Storage directory used by containerd.
static DIR_STORAGE_CONTAINERD: &str = "/var/run/container";
/// Storage directory used by CRI containerd.
Expand Down Expand Up @@ -258,7 +270,13 @@ impl Settings {
vec![
DIR_PTS.to_string(),
DIR_STORAGE_LIBPOD.to_string(),
DIR_STORAGE_DOCKER_AUFS.to_string(),
DIR_STORAGE_DOCKER_BTRFS.to_string(),
DIR_STORAGE_DOCKER_DEVMAPPER.to_string(),
DIR_STORAGE_DOCKER_OVERLAY.to_string(),
DIR_STORAGE_DOCKER_OVERLAY2.to_string(),
DIR_STORAGE_DOCKER_VFS.to_string(),
DIR_STORAGE_DOCKER_ZFS.to_string(),
DIR_STORAGE_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD2.to_string(),
Expand Down Expand Up @@ -336,7 +354,13 @@ impl Settings {
// Paths used by container runtimes.
DIR_PTS.to_string(),
DIR_STORAGE_LIBPOD.to_string(),
DIR_STORAGE_DOCKER_AUFS.to_string(),
DIR_STORAGE_DOCKER_BTRFS.to_string(),
DIR_STORAGE_DOCKER_DEVMAPPER.to_string(),
DIR_STORAGE_DOCKER_OVERLAY.to_string(),
DIR_STORAGE_DOCKER_OVERLAY2.to_string(),
DIR_STORAGE_DOCKER_VFS.to_string(),
DIR_STORAGE_DOCKER_ZFS.to_string(),
DIR_STORAGE_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD2.to_string(),
Expand Down

0 comments on commit a062689

Please # to comment.