Container images can be quite large, and creating a copy every time you start a new container would be slow and wasteful.
This post explains a solution to this problem: overlay file systems!
rbspy is a profiler for Ruby. It lets you profile Ruby processes that are already running. You give it a process ID, and it starts profiling.
It's a sampling profiler, which means it's low overhead and safe to run in production.