Re:Alpine Linux Docker images have NULL for root password
by hssys on Wednesday May 08, 2019 @03:34PM
(#19862099)
You might want at least a shell in the container for debugging?
[ Parent
| on HN ]
Re:Alpine Linux Docker images have NULL for root password
by ImJasonH on Wednesday May 08, 2019 @07:27PM
(#19863948)
Distroless has debug images for this purpose: https://github.com/GoogleContainerTools/distroless/blob/mast...
Re:Alpine Linux Docker images have NULL for root password
by souterrain on Wednesday May 08, 2019 @04:00PM
(#19862325)
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.
Re:Alpine Linux Docker images have NULL for root password
by hibbelig on Wednesday May 08, 2019 @05:08PM
(#19862958)
Without a shell, how does one debug if anything goes wrong?
Re:Alpine Linux Docker images have NULL for root password
by hundt on Thursday May 09, 2019 @01:35PM
(#19870307)
You can start a container with a shell that shares the PID and network namespaces of the container you want to debug.
Re:Alpine Linux Docker images have NULL for root password
by antsar on Wednesday May 08, 2019 @05:27PM
(#19863140)
Reading logs/traces on your log aggregation service and reproducing in a dev system?
Re:Alpine Linux Docker images have NULL for root password
by jeremyjh on Wednesday May 08, 2019 @05:53PM
(#19863357)
How do you debug in the dev env without a shell?
Re:Alpine Linux Docker images have NULL for root password
by the8472 on Wednesday May 08, 2019 @05:56PM
(#19863393)
from the host system, containers don't exist in a vacuum
Re:Alpine Linux Docker images have NULL for root password
by y04nn on Wednesday May 08, 2019 @05:49PM
(#19863314)
With remote debugging?
Re:Alpine Linux Docker images have NULL for root password
by lstodd on Wednesday May 08, 2019 @06:10PM
(#19863465)
remote debugging is a shell
Re:Alpine Linux Docker images have NULL for root password
by the8472 on Wednesday May 08, 2019 @06:21PM
(#19863529)
not necessarily. e.g. java runtimes can expose debugging ports when needed that operate on a custom protocol.
or you can just build gdb into the container and run the process under gdb, then attach to the tty.
or you can debug from the host system where the container's pid namespace is a descendant of the root namespace and the other namespaces can be accessed via /proc or unshare.
Re:Alpine Linux Docker images have NULL for root password
by lstodd on Thursday May 09, 2019 @02:53PM
(#19871062)
What I meant is having a remote debugger is as good as having a remote shell in terms of remote code execution.
Re:Alpine Linux Docker images have NULL for root password
by discreteevent on Wednesday May 08, 2019 @05:59PM
(#19863412)
Debugging is about when the difference between theory and practice breaks down.