> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmk/frequently-asked-questions/can-we-use-docker-storage-driver-in-loop-lvm-mode-for-our-cluste.md).

# Can we use Docker Storage Driver in loop-lvm Mode on PMK Cluster?

## Problem

* Is it possible to setup the PMK cluster with docker storage driver in `loop-lvm` mode and are there any concerns related to it?

## Environment

* Platform9 Managed Kubernetes - All Versions
* Docker

## Answer

* For production setups, the device-mapper docker storage driver must be configured to use `direct-lvm` mode.
* The `loop-lvm` mode is acceptable only for testing but is **not supported for production deployments.**
* Frequently `loop-lvm` mode is preferred over the `direct-lvm` mode in non-production or testing setups because unlike direct-lvm, it does not need `one free block device (a disk or a partition)` on the node.
* Although with `loop-lvm` there is a common and known issue where the the Docker storage gets filled up more frequently due to failure in deletion of the old unwanted data.
* The remedy to this is pruning the docker data manually using the below mentioned command.

{% tabs %}
{% tab title="Command to prune Docker data" %}

```javascript
# docker system prune -a -f --volumes
```

{% endtab %}
{% endtabs %}

* There is one more and **most recommended approach** which is to use the `Overlay2` as the Docker storage driver in production environment since it is more stable that `device-mapper`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmk/frequently-asked-questions/can-we-use-docker-storage-driver-in-loop-lvm-mode-for-our-cluste.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
