Changelog

Linux Icon jvns.ca

How do you spy on a program running in a container?

logged by @jerodsanto 2018-01-29T21:53:00.008872Z permalink #linux #ruby

Julia Evans:

Yesterday I added Linux container support to rbspy, so that an instance of rbspy running on the host machine can profile Ruby programs running in containers... I thought it would be fun to explain what adding “container support” involves in practice!

(rbspy is her sampling profiler for Ruby.)

This bit is interesting, and why this post isn't tagged with the Docker topic:

We didn’t need to care about Docker or anything like that – it’s irrelevant what container runtime our containers are using, and we certainly don’t interact with Docker at all.

I guess a few simple syscalls is all it takes!

0:00 / 0:00