News for hackers. Stuff that matters.
Re:S p a m m y s y s C a l l s in strace dumps by blueflow on Friday January 06, 2023 @07:39AM (#34274009)
strace is useless for containers, you cant attach across container boundaries, and usually you can't install it into the container, either. Which is really sad because its such an useful tool.
Re:S p a m m y s y s C a l l s in strace dumps by goombacloud on Friday January 06, 2023 @07:47AM (#34274073)
Not really, you can start it from the host and trace any container process you like. On Linux the processes are in one large tree and the host has IDs for all container processes. Inside the container you may have different IDs if a pid namespace is used but from the outside these processes are in the host's process tree and have regular IDs.
Re:S p a m m y s y s C a l l s in strace dumps by crdotson on Friday January 06, 2023 @08:07AM (#34274191)
And “pstree -n PID” can help a lot with this.