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

**URL:** <https://community.grafana.com/t/how-to-install-grafana-loki-docker-driver-in-an-offline-environment/125528>\
**Category:** Grafana Loki\
**Created:** [July 5, 2024, 3:52am UTC](https://community.grafana.com/t/how-to-install-grafana-loki-docker-driver-in-an-offline-environment/125528 "2024-07-05T03:52:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fa258800650](https://avatars.discourse-cdn.com/v4/letter/f/ed8c4c/32.png) [@fa258800650](https://community.grafana.com/u/fa258800650)\
**Post date:** [July 5, 2024, 3:52am UTC](https://community.grafana.com/t/how-to-install-grafana-loki-docker-driver-in-an-offline-environment/125528/1 "2024-07-05T03:52:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jayclifford](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jayclifford/32/42960_2.png) [@jayclifford](https://community.grafana.com/u/jayclifford)\
**Post date:** [July 5, 2024, 1:28pm UTC](https://community.grafana.com/t/how-to-install-grafana-loki-docker-driver-in-an-offline-environment/125528/2 "2024-07-05T13:28:05Z")

</div>

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](https://github.com/grafana/loki/tree/main/clients/cmd/docker-driver)

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](https://www.howtogeek.com/devops/how-to-manage-docker-engine-plugins/#:~:text=The%20Docker%20CLI%20doesn't,files%20to%20the%20offline%20system).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [July 5, 2025, 1:29pm UTC](https://community.grafana.com/t/how-to-install-grafana-loki-docker-driver-in-an-offline-environment/125528/3 "2025-07-05T13:29:05Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
