A tutorial from Citizix demonstrates how to use the Docker plugin to send Docker logs to Grafana Loki.
How to ship docker logs to Grafana Loki using Docker plugin
Grafana Loki officially supports a Docker plugin that will read logs from Docker containers and ship them to Loki. This guide assumes that you have grafana loki up and running.
How to ship docker logs to Grafana Loki using Docker plugin