How to install grafana/loki-docker-driver in an offline environment?

I want to install Loki in a Docker Swarm cluster that is isolated from the external network and monitor container logs. I am currently unable to install grafana/loki-docker-driver; is there a way to install it offline? Thank you very much.

Hi @fa258800650, So this might be more of a docker issue in how to install offline plugins. What you could try however is cloning the the Loki repo and building the plugin from source on the offline machine that should allow you to install it locally: loki/clients/cmd/docker-driver at main · grafana/loki · GitHub

The other option is doing something like this tutorial: https://www.howtogeek.com/devops/how-to-manage-docker-engine-plugins/#:~:text=The%20Docker%20CLI%20doesn’t,files%20to%20the%20offline%20system.