# How to update NextCloudPi docker container?

**URL:** <https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** update\_problems, docker, ncp\
**Created:** [March 21, 2018, 6:25am UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282 "2018-03-21T06:25:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohannesS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/johanness/32/32092_2.png) [@JohannesS](https://help.nextcloud.com/u/JohannesS)\
**Post date:** [March 21, 2018, 6:25am UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/1 "2018-03-21T06:25:43Z")

</div>

Hi all,

I’m using the NextcloudPi docker container on Raspbian. Updating Nextcloud inside of the container is no issue, it works through the web UI, but I cannot find on how to properly update the container itself to get a new version of ncp.

Manual method would be to re-download and setup the docker container of the new version. If I understand docker correctly this should not lead to lost data, if the same start commad for the container is used (using the same volume as before). Is this correct?

Is there an automatic updating technique? I wouldn’t want to manually do it in an ideal production environment.

Edit: [https://github.com/nextcloud/docker](https://github.com/nextcloud/docker) describes the update process as pulling the new container, removing the old one and starting the download one with identical parameters, as I have thought.  
Are there any hints / warnings anyone wants to share about this process?

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![nachoparker](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nachoparker/32/2975_2.png) [@nachoparker](https://help.nextcloud.com/u/nachoparker)\
**Post date:** [March 22, 2018, 1:26pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/2 "2018-03-22T13:26:57Z")

</div>

Hello,

The process of updating the container needs to be automated and made easier. That will come in the very near future, now that other higher priority tasks have been implemented.

For now, the manual way would be

- update NC through web as you already did. Files and database will be up to date with NC13.0.1. Those live in the volume `ncdata`.
- pull the container to the new version.
- stop and remove the old container and run the new one, of course using the same volume `ncdata` (if you are using the compose file this will be done for you ). Because you are using the same persistent volume, everything should just work. I say _should_ because it has not really been tested carefully by me (not in all the possible scenarios).

In any case, I strongly recommend that you backup your system, at the very least a dataless backup in case something goes wrong.

Let us know how it goes.

---

<div class="post-metadata">

**Author:** ![verpfeilt](https://help.nextcloud.com/letter_avatar/verpfeilt/32/5_5575768a8748004e209b776fc1b2916d.png) [@verpfeilt](https://help.nextcloud.com/u/verpfeilt)\
**Post date:** [October 2, 2018, 9:45am UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/3 "2018-10-02T09:45:48Z")

</div>

Sorry for reviving old threads, but is this still the way to go for the recent update which includes Nextcloud 14 or are there changed recommendations?

I’m asking because there is a “Update” tab in the web UI (the one available via port 4443) that seems to update NCP (didn’t try it yet), but the nc-update-nextcloud seems to be disabled for the docker version. So actually I can’t do it the way you described, do I?

```
[nc-update-nextcloud]
This feature is still not available for docker containers
```

---

<div class="post-metadata">

**Author:** ![nachoparker](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nachoparker/32/2975_2.png) [@nachoparker](https://help.nextcloud.com/u/nachoparker)\
**Post date:** [October 2, 2018, 12:54pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/4 "2018-10-02T12:54:25Z")

</div>

Unfortunately I have not adapted the ncp-web updater to docker. You can upgrade through the regular builtin Nextcloud updater, but you might run into issues

- missing db indexes
- integrity check failures

you can google/look around the forum to fix those, they are easy

---

<div class="post-metadata">

**Author:** ![verpfeilt](https://help.nextcloud.com/letter_avatar/verpfeilt/32/5_5575768a8748004e209b776fc1b2916d.png) [@verpfeilt](https://help.nextcloud.com/u/verpfeilt)\
**Post date:** [October 3, 2018, 8:30pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/5 "2018-10-03T20:30:10Z")

</div>

Since I was in a testing phase and not much serious data was inserted, I probably choose to set it up with the new image. But what’s important to me: Is there an updating strategy for the new docker image containing NC14, or do you recommend other ways to install NCP? In terms of updating, I mean.

I should note the following things: The regular updater says that I’m up-to-date with (and I do not spell this wrong) NextCloudPi 13.0.6, but I get notified by NCP that I am not up-to-date with Version 0.60.8. In the port 4443 interface I also can not update to NC14, so I would not even be able to do that.

---

<div class="post-metadata">

**Author:** ![nachoparker](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nachoparker/32/2975_2.png) [@nachoparker](https://help.nextcloud.com/u/nachoparker)\
**Post date:** [October 5, 2018, 12:14am UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/7 "2018-10-05T00:14:26Z")

</div>

Unfortunately there is yet no version of the NCP updater adapted to docker. In order to update to the PHP7.2 version I would (backup first)

- get the latest container
- run it, and update from the NC web updater
- fix the issues that will arise (integrity check fails, check this forum)

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [September 14, 2021, 10:01am UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/8 "2021-09-14T10:01:49Z")

</div>

4 posts were split to a new topic: [How to update ncp-docker](https://help.nextcloud.com/t/how-to-update-ncp-docker/123631)

---

<div class="post-metadata">

**Author:** ![kpleines](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kpleines/32/9797_2.png) [@kpleines](https://help.nextcloud.com/u/kpleines)\
**Post date:** [September 14, 2021, 6:01pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/9 "2021-09-14T18:01:12Z")

</div>

Ok, thanks for that advice.

---

<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 3, 2024, 9:37pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/10 "2024-12-03T21:37:19Z")

</div>



---

<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 9, 2024, 2:27pm UTC](https://help.nextcloud.com/t/how-to-update-nextcloudpi-docker-container/29282/11 "2024-12-09T14:27:20Z")

</div>


