US 12,293,204 B2
Collecting diagnostic information from a failed container
Shefali Kulkarni, S Kodagu (IN); Vimal Krishna, Bangalore (IN); and Amit Kumar Karira, Bangalore (IN)
Assigned to Dell Products, L.P., Hopkinton, MA (US)
Filed by Dell Products, L.P., Hopkinton, MA (US)
Filed on Oct. 2, 2022, as Appl. No. 17/958,400.
Prior Publication US 2024/0111557 A1, Apr. 4, 2024
Int. Cl. G06F 9/455 (2018.01); G06F 9/4401 (2018.01)
CPC G06F 9/45545 (2013.01) [G06F 9/4406 (2013.01); G06F 2009/45583 (2013.01)] 20 Claims
OG exemplary drawing
 
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.