logoalt Hacker News

mrweaselyesterday at 12:55 PM2 repliesview on HN

For debugging image it's sometimes nice to be able to actually do stuff in the container, but for production image I'd agree.


Replies

estyesterday at 1:21 PM

Some tricks:

docker run -it --rm --pid=container:myapp --network=container:myapp --cap-add SYS_PTRACE nicolaka/netshoot

kubectl debug -it pod-name --image=nicolaka/netshoot

soraminazukiyesterday at 1:17 PM

And that's why Docker images are terrible as a packaging format. No sane packaging format should ever prevent software composition.