Browse code

Report number of times that docker has auto-restarted a container

Fixes #9469.

Signed-off-by: Rémy Greinhofer <remy.greinhofer@livelovely.com>

Rémy Greinhofer authored on 2014/12/12 08:09:48
Showing 1 changed files
... ...
@@ -41,6 +41,7 @@ func (daemon *Daemon) ContainerInspect(job *engine.Job) engine.Status {
41 41
 		out.Set("HostnamePath", container.HostnamePath)
42 42
 		out.Set("HostsPath", container.HostsPath)
43 43
 		out.Set("Name", container.Name)
44
+		out.SetInt("RestartCount", container.RestartCount)
44 45
 		out.Set("Driver", container.Driver)
45 46
 		out.Set("ExecDriver", container.ExecDriver)
46 47
 		out.Set("MountLabel", container.MountLabel)