restart count

The number of times Docker has restarted a container under its restart policy, recorded in the container's state.

In more detail

Every automatic restart reuses the same container, so the count keeps climbing while the status can look normal between crashes. Read it with docker inspect and a format string. A rising restart count is the clearest sign of a crash loop.

Example

docker inspect -f '{{.RestartCount}}' m07l01-loop

Related terms

Taught in

References

Certification courses