-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
How to deal with uprobe process in docker container from host? #2363
Comments
could you check whether uprobe is installed properly on the host or not? For early version, you can check debugfs /sys/kernel/debug/tracing/uprobe_events, newer kernel you can check using kernel |
@yonghong-song I checked uprobe_events found uprobe_events worked (in uprobe_events). But there is nothing printed. I can use ltrace to attach the bash(etc pid 31571 below), but uretprobe not worked. Docker version 18.09.2, build 6247962 |
I discovered was related to Storage Drive. |
Re: the last update @iAklis |
@yzhao1012 If by overlay you mean |
@palmtenor or @yzhao1012 Does anyone have any more information on this topic? I would like to run the binary inside the container and capture events from the host (outside the container). |
@mgale uprobes are made of the program file inode, the instruction offset, the list of related actions and the replaced instruction code. When you create a probe, it is added to a specific binary tree. it means you can't use a binary copy, but you can attach to the binary in container's overlayfs, use
for example, my binary is |
I run a docker container(
docker run -it fedora:26 /bin/bash
) which runs bash.18f3fa58fad7
is the docker container. I installed bcc on hosts.How could I make tool like bashreadline work for bash in container well as the bash on host.
The text was updated successfully, but these errors were encountered: