How to update teddyCloud without losing data

i am very interested in updating my TeddyCloud Container from version 0.5.2 to 0.6.2. Can you please explain how exactly i can do this without losing data. For me it’s not a every days busines. I can use nano to change any file, but i do not know where i can find the docker compose. Sorry for asking so stupid questions.

Do i have to use portainer, putty, git hub etc.? I hope you can explain it to a newbe like me.
Version 0.6.2 locks fantastic. So much thanks to all who worked on.

Best Regards Markus

Hi, depends on your setting. Any more details? Which hardware? Are you using portainer?

In general you just have to pull the latest image and then restart the container.

In case of plain docker use, open commandline, switch to the folder where your docker-compose.json is located. Then enter

docker compose pull

And then

Docker compose up -d

Then you should have 0.6.2 running and all settings unchanged.

Hi,

First of all, I got it right. There were a few stumbling blocks along the way, but I made it.

I use a Raspberry Pi 4, which runs Docker and Portainer. I used Portainer to find out where my docker-compose.yaml file is located. Namely in /home/Markus/docker-compose.yaml

I also added the new port 8443 via nano to docker-compose.yaml, as described in another post of yours.

Using your commands, I was able to update TeddyCloud to the new version. I had to be careful with the capitalization, but I figured it out myself. Unfortunately, I lost the permanently assigned IP address for the container, but I was able to fix that quickly in Portainer.

Thanks also for your post, How to Create a Good Support Request. I will use it as a guide for my next question.

Thanks for your efforts.

If you are using portainer I would assume portainer provides something in its gui to do a update of a hosted docker container? I would search the portainer help for that.

If you don’t use portainer and use the provided docker compose file from teddycloud there will be no change of the ip.

But in the end good that you was able to update teddycloud and fix the occurred problems yourself :slight_smile:

I mentioned this in the FAQ of my Newbie guide:

:speech_balloon: How can I update my teddcloud instance?

In Portainer, select “Images” from the menu, choose your teddycloud image and push the “pull from registry” button.

Furthermore, the advantage of Portainer is that you can manage almost your entire Docker environment from the Browser/GUI, so no need to edit yaml files manually or using the command line anymore. Portainer has Stacks which is the equivalent of docker-compose. In the Stacks editor, you can insert the whole docker-compose.yaml and you can edit/change it there anytime.

Here‘s a nice HowTo for Stacks, including a video.