Hacker News new | ask | show | jobs
by marwatk 1608 days ago
We drop a statically compiled BusyBox binary on images like that as "sh". If we need more we can symlink to it in /tmp at debug time (or just call it directly). It strikes a good balance between slim and debuggable.
2 comments

Do you do this during build time or debug time?
Been using containers and fighting this problem for a long time... I never thought of this simple solution, thank you for sharing it!