CPC G06F 9/45545 (2013.01) [G06F 9/4406 (2013.01); G06F 2009/45583 (2013.01)] | 20 Claims |
1. A system comprising:
one or more processors; and
a non-transitory tangible computer readable storage medium having stored thereon a computer program including a set of instructions which, when executed by the one or more processors, cause the one or more processors to execute a method comprising:
creating a container image including an application and a diagnostics collection script;
creating a first container from the container image using the application as an entrypoint to the first container, the first container including a first container environment;
starting the first container;
after the first container has failed:
creating a second container from the container image using the diagnostics script as an entrypoint to the second container without starting execution of the application, the second container including a second container environment that is the same as the first container environment;
collecting log files of the first container by the diagnostics collection script, wherein the log files include diagnostic information from the failed first container;
starting the second container in a safe mode; and
running diagnostic operations by executing the diagnostics collection script on the second container environment without interfering with the second container's original settings by creating a wrapper around diagnostic collection binaries specific to the second container.
|