Skip to content

Commit

Permalink
Added support for Docker logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paradoxis committed Nov 1, 2024
1 parent 6266553 commit a5210cd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions acquire/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,15 @@ def run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector)
super().run(target, cli_args, collector)


@register_module("--docker")
class Docker(Module):
SPEC = [
("glob", "/var/lib/docker/containers/*/*-json.log"),
("glob", "/var/lib/docker/containers/*/*.json"),
("glob", "/var/lib/docker/containers/*/hostname"),
]


@register_module("--var")
class Var(Module):
SPEC = [
Expand Down Expand Up @@ -1966,6 +1975,7 @@ class LinuxProfile:
DEFAULT = MINIMAL
FULL = [
*DEFAULT,
Docker,
History,
WebHosting,
]
Expand Down

0 comments on commit a5210cd

Please sign in to comment.