Skip to content

FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/debug/tracing/' #3

@ostrolucky

Description

@ostrolucky
❯ cat Dockerfile
FROM debian:10
RUN apt-get update && apt-get install -y wget python3 python3-pip
RUN wget https://raw.githubusercontent.com/Cybereason/linux_plumber/master/plumber.py
RUN wget https://raw.githubusercontent.com/Cybereason/linux_plumber/master/requirements.txt
RUN pip3 install -r requirements.txt
RUN python3 plumber.py
❯ docker build .
WARN[0000] invalid non-bool value for BUILDX_NO_DEFAULT_LOAD:
[+] Building 0.4s (9/9) FINISHED
 => [internal] load .dockerignore                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                   0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                              0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/debian:10                                                                                                                                                      0.0s
 => [1/6] FROM docker.io/library/debian:10                                                                                                                                                                        0.0s
 => CACHED [2/6] RUN apt-get update && apt-get install -y wget python3 python3-pip                                                                                                                                0.0s
 => CACHED [3/6] RUN wget https://raw.githubusercontent.com/Cybereason/linux_plumber/master/plumber.py                                                                                                            0.0s
 => CACHED [4/6] RUN wget https://raw.githubusercontent.com/Cybereason/linux_plumber/master/requirements.txt                                                                                                      0.0s
 => CACHED [5/6] RUN pip3 install -r requirements.txt                                                                                                                                                             0.0s
 => ERROR [6/6] RUN python3 plumber.py                                                                                                                                                                            0.3s
------
 > [6/6] RUN python3 plumber.py:
#9 0.309 Welcome to Plumber, a grep friendly execve/fork monitor for Linux!
#9 0.309 Written by Amit Serper, Cybereason | Contact: @0xAmit
#9 0.309 Traceback (most recent call last):
#9 0.309   File "plumber.py", line 36, in <module>
#9 0.309     os.chdir("/sys/kernel/debug/tracing/")
#9 0.309 FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/debug/tracing/'
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c python3 plumber.py]: exit code: 1
❯ docker run -it --rm debian:10 cat /proc/sys/kernel/ftrace_enabled
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions