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

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

Open
ostrolucky opened this issue Mar 30, 2021 · 0 comments

Comments

@ostrolucky
Copy link

❯ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant