Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I an upgrade to latest docker container? #89

Closed
amcsSH opened this issue Dec 28, 2017 · 13 comments
Closed

How do I an upgrade to latest docker container? #89

amcsSH opened this issue Dec 28, 2017 · 13 comments

Comments

@amcsSH
Copy link

amcsSH commented Dec 28, 2017

Host operating system

same

What tag are you using

latest for now

What complete docker command or docker-compose.yml do you use to launch the container (omitting sensitive values)?

docker on synology nas.

What do you expect to happen?

a documentation section about upgrade to new container version.

What actually happens?

I don't know.

@amcsSH amcsSH changed the title How do I an upgrade to öatest How do I an upgrade to latest docker container? Dec 28, 2017
@jcostom
Copy link
Contributor

jcostom commented Dec 29, 2017

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.

@StefaanD
Copy link

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.

@jacobalberty
Copy link
Owner

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.

@tophe75
Copy link

tophe75 commented Mar 22, 2018

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.

@jhelmink
Copy link

jhelmink commented Apr 2, 2018

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.

@onmomo
Copy link

onmomo commented Jun 28, 2018

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

@DannMendis
Copy link

@jhelmink Thanks million. Easy process

@mszoernyi
Copy link

mszoernyi commented Oct 17, 2018

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.

@phillijw
Copy link

@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.

@coalfield
Copy link

@jhelmink thank you easy to follow and worked great!

@mayhew132
Copy link

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

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Feb 17, 2022
@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests