# Help needed with Docker and Nextcloud

**URL:** https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202
**Category:** General Discussion
**Created:** [22 October 2023 18:01 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202 "2023-10-22T18:01:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nando](https://dietpi.com/forum/user_avatar/dietpi.com/nando/32/4160_2.png) [@Nando](https://dietpi.com/forum/u/Nando)
#### Post date: [22 October 2023 18:01 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/1 "2023-10-22T18:01:22Z")

</div>

Hey

I have an Odroid with Nextcloud and some other services running on the most recent DietPi version. I decided to move to CasaOS, which is also my first experience with Docker. My problem is my Nextcloud instance.  
I use Nextcloud with Nginx, MariaDB and Redis. This setup works great for my small server and I would love to keep it for performance reasons. But I am unable to find any good Docker compose file that would do this for me. Is anyone here able to help me out?

Thx in regards

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 October 2023 18:33 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/2 "2023-10-22T18:33:00Z")

</div>

What did you expect from moving into Docker with your NC instance?

And for the NC docker container, simply have a look for the official NC docs

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [22 October 2023 23:14 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/3 "2023-10-22T23:14:07Z")

</div>

You can tar up the entire docker image and migrate that way

do this method…I did it on a VM on a PROXMOX box…on smaller containers…not stacks (and not sure the persistent data mappings were included) [they were simple cloudflare zero trust mappings that didn’t require persistent data, followed the commit, compress, move, and run commands from below and they worked just fine, you might have to manually move the persistent data folders {rsync} them to the new machine]

But it seemed to work

> **[How to Copy/Move a Docker Container to Another Host - Make Tech Easier](https://www.maketecheasier.com/copy-move-docker-container-to-another-host/)**
>
> Since Docker containers are little boxes of software, it can be easily copied and moved from computer to computer. Here we show you how to do it.

Found this…a way to migrate an entire stack in portainer!

> **[Migrate or duplicate a stack](https://docs.portainer.io/user/docker/stacks/migrate)**

Setup portainer as “master” on one machine, the others use “portainer agent” and connect into it, it’s how I have all my portainer instances setup

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [22 October 2023 23:24 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/4 "2023-10-22T23:24:53Z")

</div>

I also used this method initially to build/deploy the stack (just found that portainer can’t migrate a stack not built inside portainer…and docker-compose.yml it can’t move…so might have to move each container individually with the persistent data directories)

> **[How to deploy ownCloud collaboration suite with persistent storage using Docker](https://www.techrepublic.com/article/deploy-owncloud-using-docker/)**
>
> Jack Wallen walks you through the process of quickly deploying the ownCloud file-sharing and collaboration platform with the help of Docker.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 October 2023 06:42 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/5 "2023-10-23T06:42:14Z")

</div>

> [@WarHawk](#):
>
> You can tar up the entire docker image and migrate that way

It’s not about moving Docker container. It’s about migrating from bare metal into Docker

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [24 October 2023 02:56 UTC](https://dietpi.com/forum/t/help-needed-with-docker-and-nextcloud/18202/6 "2023-10-24T02:56:17Z")

</div>

> [@Joulinar](#):
>
> It’s not about moving Docker container. It’s about migrating from bare metal into Docker

ah…might install docker…get nextcloud running…then follow this (export/dump database)  
[https://docs.nextcloud.com/server/latest/admin\_manual/maintenance/migrating.html](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating.html)

Other than that…dunno
