Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hssys
· 7y ago · 0 comments
You might want at least a shell in the container for debugging?
Comments
[–]
ImJasonH
7y ago
Distroless has debug images for this purpose:
https://github.com/GoogleContainerTools/distroless/blob/mast...
[–]
souterrain
7y ago
Adding a shell seems antithetical to deploying production code as a static-linked binary, not to mention an expansion of the attack surface of the container.
[–]
hibbelig
7y ago
Without a shell, how does one debug if anything goes wrong?
[–]
hundt
7y ago
You can start a container with a shell that shares the PID and network namespaces of the container you want to debug.
[–]
antsar
7y ago
Reading logs/traces on your log aggregation service and reproducing in a dev system?
[–]
jeremyjh
7y ago
How do you debug in the dev env without a shell?
[–]
the8472
7y ago
from the host system, containers don't exist in a vacuum
[–]
y04nn
7y ago
With remote debugging?
[–]
lstodd
7y ago
remote debugging is a shell
[–]
discreteevent
7y ago
Debugging is about when the difference between theory and practice breaks down.
[–]
ecnahc515
7y ago
You can use nsenter