Correct way for updating Nextcloud Docker instances?

Hi, i plan to migrate my Nextcloud setup to the Apache based official Docker image and wanted to ask for the proper way to update the Docker installation. Do I just have to stop the container, run docker pull and restart it again, or do I install updates via the nextcloud web interface?


or use docker compose or watchtower or portainer. it’s easier that way.

that doesn’t work.

1 Like

Perfect, that was the answer I was hoping for! Many thanks.

I’m using portainer, but I also like to use systemd for this, like so:

ExecStartPre=/usr/bin/docker pull portainer/portainer-ce:latest
ExecStart=/usr/bin/docker run --rm [...] --name=portainer portainer/portainer-ce

@nook24 btw: this is the place where the “real” update happens.