Score:0

How do I prevent docker from exiting when my app crashes

us flag

I need to debug an application that is crashing inside a docker, how do I achieve that the docker does not stop when the app crashes, allowing me to -it inside and try starting the app manually?

GregL avatar
cn flag
Thats…. Not how You should be doing it. Log your errors to stderr and review them when the container crashes.
us flag
@GregL I log the errors, but since I can't reproduce the error outside of container, I need to step over the code inside the docker. I may also need to modify files in the docker on the fly to understand what's wrong and how to solve that.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.