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

Fixes #9469.

Signed-off-by: Rémy Greinhofer <remy.greinhofer@livelovely.com>
Merge pull request #9621 from rgreinho/issue/9469

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