# Docker Volumes for Persistent Gateway Data

**URL:** <https://forum.inductiveautomation.com/t/docker-volumes-for-persistent-gateway-data/39378>\
**Category:** General Discussion\
**Tags:** ignition80\
**Created:** [October 5, 2020, 3:21pm UTC](https://forum.inductiveautomation.com/t/docker-volumes-for-persistent-gateway-data/39378 "2020-10-05T15:21:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hodgins.e](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hodgins.e](https://forum.inductiveautomation.com/u/hodgins.e)\
**Post date:** [October 5, 2020, 3:21pm UTC](https://forum.inductiveautomation.com/t/docker-volumes-for-persistent-gateway-data/39378/1 "2020-10-05T15:21:26Z")

</div>

I saw that Ignition has a docker image on docker hub ([https://hub.docker.com/r/inductiveautomation/ignition](https://hub.docker.com/r/inductiveautomation/ignition)) . Looks nice for testing possibly but was wondering if you can setup volumes to persist Gateway data? And also wouldn’t mind testing with Kubernetes if possible.

I know that kcollins has an image as well ( [https://hub.docker.com/r/kcollins/ignition#How-to-persist-Gateway-data](https://hub.docker.com/r/kcollins/ignition#How-to-persist-Gateway-data) ) and recommends mounting here `/var/lib/ignition/data` . Would this also be the same for the inductiveautomation/ignition image?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 5, 2020, 3:31pm UTC](https://forum.inductiveautomation.com/t/docker-volumes-for-persistent-gateway-data/39378/2 "2020-10-05T15:31:29Z")

</div>

Not quite - on the official images, the entire service is installed to `/usr/local/bin/ignition`, rather than the ‘exploded’ path we used in previous versions - so the equivalent path would be `/usr/local/bin/ignition/data`. Not that Ignition as a whole has some limitations with single volume persistence like this; backing up the `/data` directory will capture the internal database and projects, which is 90% of what you would want to restore, but it does omit any custom JDBC driver files, modules or Python libraries you’ve installed (all of which are in `${install dir}/user-lib/`).

---

<div class="post-metadata">

**Author:** ![hodgins.e](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hodgins.e](https://forum.inductiveautomation.com/u/hodgins.e)\
**Post date:** [October 5, 2020, 3:42pm UTC](https://forum.inductiveautomation.com/t/docker-volumes-for-persistent-gateway-data/39378/3 "2020-10-05T15:42:40Z")

</div>

That sounds good, thank you! I’ll give it a shot 🙂
