-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi team,
Thanks for creating a containerized bcc. We used your docker version of bcc by invoking the command
docker run -it --rm
--privileged
-v /lib/modules:/lib/modules:ro
-v /usr/src:/usr/src:ro
-v /etc/localtime:/etc/localtime:ro
--workdir /usr/share/bcc/tools
zlim/bcc
Since its a privileged mode its should have access to the host space. But when we invoke bcc scripts from the container we could nt look up the process and threads executing on the host.
I could see only the process inside the container. Do i need to mount anything specific so that i can access the process running in the host and collect statistics. Please help us.
top -H from inside the container
top - 05:27:44 up 19 days, 5:36, 0 users, load average: 0.35, 0.35, 0.29
Threads: 2 total, 1 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.0 us, 0.8 sy, 0.0 ni, 98.1 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 92804024 total, 74289296 free, 6918844 used, 11595884 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 84016944 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 18508 3612 3144 S 0.0 0.0 0:00.03 bash
18 root 20 0 36656 3264 2800 R 0.0 0.0 0:00.00 top
I cant see anything running on host so that i can attach using bcc scripts
Thanks