GithubHelp home page GithubHelp logo

Comments (13)

jhelmink avatar jhelmink commented on June 19, 2024 15

This is how I update my containers on Synology Docker;

Open the Docker package.
Go to the Registry, and search for the image.
Click download, and choose the 'latest' tag
This will download the latest image and overwrite the existing older image.
Stop the container that was built on the old image.
Highlight it and select the Clear/Reset action.
Restart the container and it will be built from the new image.

This assumes that you've correctly mapped your container /config directory to the local volume, so all the config will be used by the updated image.

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024 4

Watchtower should work just fine actually. I use it myself. If your unifi container is named unifi then try the following:

docker run -d \
  --name unifi-updater \
  -v /var/run/docker.sock:/var/run/docker.sock \
  v2tec/watchtower unifi

This will launch a container named unifi-updater to update unifi see the v2tec/watchtower page for more advanced configurations.

I'll see about putting together a few update options on the wiki and readme in a bit.

from unifi-docker.

mayhew132 avatar mayhew132 commented on June 19, 2024 2

This is how I update my containers on Synology Docker;

Open the Docker package. Go to the Registry, and search for the image. Click download, and choose the 'latest' tag This will download the latest image and overwrite the existing older image. Stop the container that was built on the old image. Highlight it and select the Clear action. Restart the container and it will be built from the new image.

This assumes that you've correctly mapped your container /config directory to the local volume, so all the config will be used by the updated image.

Just a minor update to this (in case anyone else arrives here after a Google Search) - the 'Clear' option is now 'Reset' on the Synology Docker application:
Screenshot 2021-12-30 at 11 38 42

from unifi-docker.

jcostom avatar jcostom commented on June 19, 2024 1
docker pull jacobalberty/unifi:stable
docker stop unifi (assuming your container is named "unifi")
docker rename unifi unifi.save
docker run ...... (however you created the original container)

If you're using the Synology web ui for Docker, pull latest stable, stop, rename, create new, start

Happy with the new version? Delete the prior container version. Done. The longest part (for me) of doing a container upgrade is pulling & unpacking the updated container image.

from unifi-docker.

onmomo avatar onmomo commented on June 19, 2024 1

@jhelmink thanks, worked like a charm! :-)

from unifi-docker.

DannMendis avatar DannMendis commented on June 19, 2024 1

@jhelmink Thanks million. Easy process

from unifi-docker.

coalfield avatar coalfield commented on June 19, 2024 1

@jhelmink thank you easy to follow and worked great!

from unifi-docker.

StefaanD avatar StefaanD commented on June 19, 2024

Wouldn't watchtower be of any help here? It does work rather well with other containers, i use v2tec/watchtower docker container to automatically pull new image if they are changed, stopping container, updating container with new images and restarting them.

Bu onnly jacobalberty can confirm if there might be some drawbacks of using watchtower of not.

from unifi-docker.

tophe75 avatar tophe75 commented on June 19, 2024

The easiest way I have found is:

  • Log in to the controller
  • Download the backup
  • Stop the UniFi container
  • Re-download the Image (latest)
  • Start the new container
  • Once on the "wizard" page, restore from backup

That is the way I do it.

from unifi-docker.

mszoernyi avatar mszoernyi commented on June 19, 2024

Does anyone had an issue with the login (Invalid username and/or password.) after updating the container? I reinstalled my container (used the same version just changed it from latest to 5.9.29 which was the same at that point) and bound the same volume.

Same happens if I remove the volume and use the unify backup instead.

from unifi-docker.

phillijw avatar phillijw commented on June 19, 2024

@mszoernyi Yes! I believe it's an issue with automatic backups or something like that. I ended up just having to start over unfortunately and lose my backup.

from unifi-docker.

github-actions avatar github-actions commented on June 19, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from unifi-docker.

github-actions avatar github-actions commented on June 19, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from unifi-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.