Skip to content

Commit

Permalink
Add collection of various Docker files (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paradoxis authored Nov 4, 2024
1 parent 6266553 commit 5724ac6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions acquire/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,26 @@ def run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector)
super().run(target, cli_args, collector)


@register_module("--docker")
class Docker(Module):
DESC = "various Docker logs and configuration files"
SPEC = [
# Container log files
("glob", "/var/lib/docker/containers/*/*-json.log"),
("glob", "/var/lib/docker/containers/*/*.json"),
("glob", "/var/lib/docker/containers/*/hostname"),
# Linux daemon configs
("file", "/etc/docker/daemon.json"),
("file", "/var/snap/docker/current/config/daemon.json"),
# Windows daemon configs
("file", "sysvol/ProgramData/docker/config/daemon.json"),
# User-specific config files (MacOS/Linux/Windows)
("file", ".docker/daemon.json", from_user_home),
# Repositories
("file", "/var/lib/docker/image/overlay2/repositories.json"),
]


@register_module("--var")
class Var(Module):
SPEC = [
Expand Down Expand Up @@ -1952,6 +1972,7 @@ class WindowsProfile:
SSH,
IIS,
TextEditor,
Docker,
]


Expand All @@ -1966,6 +1987,7 @@ class LinuxProfile:
DEFAULT = MINIMAL
FULL = [
*DEFAULT,
Docker,
History,
WebHosting,
]
Expand Down Expand Up @@ -2010,6 +2032,7 @@ class OSXProfile:
*DEFAULT,
History,
SSH,
Docker,
]


Expand Down

0 comments on commit 5724ac6

Please sign in to comment.