Skip to main content

Module mirror

Module mirror 

Source
Expand description

Which runner the Docker Hub mirror served, and how many bytes: the mirror’s access log (Docker log lines with timestamps, in the combined log format) attributed by source address. A runner container’s Docker Engine pulls for every container of its job, so the mirror sees the runner container’s address. An address belongs to a runner only between its container’s start and its removal, so a later container given the same address never gets an earlier one’s bytes. Docker’s --since takes whole seconds, so each read starts with lines already counted; a MirrorPosition skips them by their exact time, and among lines of the same time, by how many.

Structs§

Leases
Which runner held which address when.
Served
One response the mirror logged.

Functions§

parse
Parses a line of docker logs --timestamps of the mirror: <RFC 3339> <address> - - [<time>] "<request>" <status> <bytes> …. Lines of another format (the registry’s own messages) are None.