# NCP on QNAP as LXD Container - persistent Storage

**URL:** <https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** docker, ncp, lxd\
**Created:** [November 30, 2023, 9:45pm UTC](https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506 "2023-11-30T21:45:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommy-01](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tommy-01/32/52735_2.png) [@Tommy-01](https://help.nextcloud.com/u/Tommy-01)\
**Post date:** [November 30, 2023, 9:45pm UTC](https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506/1 "2023-11-30T21:45:56Z")

</div>

NextcloudPi version: v1.53.0  
Nextcloud version _(eg, 20.0.5)_: 27.1.3.2  
Operating system and version _(eg, Ubuntu 20.04)_: Debian GNU/Linux 11. 5.10.60-qnap (x86\_64)  
PHP version _(eg, 7.4)_: 8.1

After reading the NCP stops Support for NCP Docker (see [nextcloudpi-planning-to-discontinue-its-docker-version-with-nc-25](https://help.nextcloud.com/t/nextcloudpi-planning-to-discontinue-its-docker-version-with-nc-25/158895)) i followed the recommendation to change to an LXD Container.

[guide-to-migrate-your-ncp-instance-from-docker-to-lxd](https://help.nextcloud.com/t/guide-to-migrate-your-ncp-instance-from-docker-to-lxd/158892)

This also worked, except that I cannot link the persistent storage.  
I want the synchronized user data not to be lost when changing the container. Therefore, this data should be stored outside the container.  
This worked without any problems with the Docker container. Unfortunately, I can’t get any further with the LXD container.  
Has anyone managed to do this before?

I use Qnap’s own software “Container Station”.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2023, 8:48pm UTC](https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506/2 "2023-12-02T20:48:10Z")

</div>

I’m not a pro in LXD but I’m under impression this are more like “virtual machine” - all the files are stored inside of the container and there is no need to define “persistent storage” like you do in Docker. in turn this is not a Docker-style “throw away” object but becomes more or less persistent VM you need to take care about, upgrade and patch like a real server.

---

<div class="post-metadata">

**Author:** ![Tommy-01](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tommy-01/32/52735_2.png) [@Tommy-01](https://help.nextcloud.com/u/Tommy-01)\
**Post date:** [December 3, 2023, 9:39pm UTC](https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506/3 "2023-12-03T21:39:03Z")

</div>

Thank you for that information. I will try to find a way to keep the user data when it comes to an update.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 1:21pm UTC](https://help.nextcloud.com/t/ncp-on-qnap-as-lxd-container-persistent-storage/175506/4 "2024-12-14T13:21:16Z")

</div>


