host: Implement log buffer line limiting for the docker backend.

refs #133

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>