4 ms·
For running network related debug tool: use nsenter (https://github.com/jpetazzo/nsenter/blob/master/README.md https://github.com/jpetazzo/nsenter/blob/master/R
by yegle 7y ago
For running network related debug tool: use nsenter (https://github.com/jpetazzo/nsenter/blob/master/README.md https://github.com/jpetazzo/nsenter/blob/master/README.md) which allows you to run network related tools using the network namespace of the container.
For simple shell access, use the :debug variant of distroless images which include a shell.
For more complex troubleshooting, I think other people has recommended many ways. I haven't had the need to do such troubleshooting but if I need to I would mount an image with necessary binaries into the container. This is where distroless becomes handy: I can mount a Debian image and don't worry about ABI compatibility.