Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 554 Bytes

strace.md

File metadata and controls

33 lines (21 loc) · 554 Bytes

strace

See system calls..

..by attaching a process or multiple

sudo strace -p 1234 -p 1235

..by running a command

sudo strace ls

I can execute it directly from outside the container

kubectl exec -it my-pod -c my-container -- strace ls

Example of utilization:

You look for a process that is doing a non authorized syscall in multiples containers

Exercice to find out which process is accessing /dev/mem

strace available inside the pod ?

kubectl exec -it my-pod -c my-container -- strace ls