# Is there a way to install replicated with docker using another directory other than /var/lib/docker?

**URL:** <https://community.replicated.com/t/is-there-a-way-to-install-replicated-with-docker-using-another-directory-other-than-var-lib-docker/456>\
**Category:** Supporting your customers\
**Created:** [October 7, 2020, 1:42pm UTC](https://community.replicated.com/t/is-there-a-way-to-install-replicated-with-docker-using-another-directory-other-than-var-lib-docker/456 "2020-10-07T13:42:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dex](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dex/32/26_2.png) [@dex](https://community.replicated.com/u/dex)\
**Post date:** [October 7, 2020, 1:42pm UTC](https://community.replicated.com/t/is-there-a-way-to-install-replicated-with-docker-using-another-directory-other-than-var-lib-docker/456/1 "2020-10-07T13:42:04Z")

</div>

We don’t have a ton of space mounted at /var – is there a way to switch the root directory?

---

<div class="post-metadata">

**Author:** ![dex](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dex/32/26_2.png) [@dex](https://community.replicated.com/u/dex)\
**Post date:** [October 7, 2020, 1:47pm UTC](https://community.replicated.com/t/is-there-a-way-to-install-replicated-with-docker-using-another-directory-other-than-var-lib-docker/456/2 "2020-10-07T13:47:07Z")

</div>

This is a great question. Two questions to dig into before you proceed is:

- Where is there other space mounted
- Do you have experience with the `/etc/docker/daemon.json` ?
- Does the end user have experience with bind mounts?

Considering all of those, there are a few options:

1. Add an /etc/docker/daemon.json that changes the docker root. Do this prior to installing any replicated or KOTS or kURL components
2. Modify /etc/docker/daemon.json via a [kurl installer patch](https://kurl.sh/docs/install-with-kurl/advanced-options) to change the [daemon config](https://kurl.sh/docs/add-ons/docker)
3. create a bind mount, as described in this article [Does replicated support storing data in a location other than /var/lib?](http://community.replicated.com/t/does-replicated-support-storing-data-in-a-location-other-than-var-lib/224)

Note that (3) is written for Replicated Classic, if you are on KOTS the methods are the same but some of the directories might be different. And the bind mount needs to be created on every node in the cluster.
