Hi everyone.
Can someone explain me how can I upgrade Sonarr since I've installed it using Docker? I tried to use the Sonarr way but it didn't worked
So how can I update it?
How to upgrade Sonarr from Docker?
-
- OMV 4.x
- Blabla
-
-
From within Sonarr, System | Updates always worked for me.
-
Thanks! Not sure why the first time didn't worked I thought it was the wrong way to update it and never tried again Now it worked insted!
What if i want to update the image? I looked and I have 113, while the last one is the 132. I'm not even sure what changes between them
-
-
I generally don't upgrade images unless there is some good reason to do so.
-
Thanks for the answer then I'll look for some guide in the future in case I'll need to update it!
-
I use watchtower docker to update automatically my others dockers: https://hub.docker.com/r/v2tec/watchtower/
-
-
I use watchtower docker to update automatically my others dockers: https://hub.docker.com/r/v2tec/watchtower/
How do you get watchtower to cleanup the stale images though? I know there is a --cleanup option, but when I put that in the Extra args box it doesn't work. I think the extra args is for the docker daemon but this is an option for the watchtower container itself.
-
I clean up manually, from time to time.
-
I found a way to have it automatically cleanup stale images. I added a daily scheduled job through the OMV interface with the following command: docker images -q --filter "dangling=true" | xargs -n1 -r docker rmi
Seems to work!
-
-
Thanks a lot, I add it to my crom.
-
I found a way to have it automatically cleanup stale images. I added a daily scheduled job through the OMV interface with the following command: docker images -q --filter "dangling=true" | xargs -n1 -r docker rmi
Seems to work!
This still works like a charm, thanks!
One question though: Do the arguments "-n1" and "-r" add any value? The command seems to work without them:
docker images -q --filter dangling=true | xargs docker rmi -
I just use two docker containers and hence using watchtower is a little bit to much overhead for me. So I'm going the manual update route. However that's really easy using OMVs docker plugin. I'll desribe my methode for a emby update.
- First I check the emby repo if there are new instructions (to be able to make necessary changes later).
- Then I pull the new image (repo in this case emby/embyserver - tag: latest)
- When done I stop the running existing instance of emby.
- Then I click that instance to mark it and press the 'copy' button.
- Here I give the new container a new name (Emby4.0.2.0); in case of new instructions I adapt the config and save it
- Now start the new container and test if all is working.
- Last step would be a cleanup
Altogether that needs 2-3 minutes. If someting goes wrong you can just start the old version again. -
-
I just use two docker containers and hence using watchtower is a little bit to much overhead for me. So I'm going the manual update route. However that's really easy using OMVs docker plugin. I'll desribe my methode for a emby update.
- First I check the emby repo if there are new instructions (to be able to make necessary changes later).
- Then I pull the new image (repo in this case emby/embyserver - tag: latest)
- When done I stop the running existing instance of emby.
- Then I click that instance to mark it and press the 'copy' button.
- Here I give the new container a new name (Emby4.0.2.0); in case of new instructions I adapt the config and save it
- Now start the new container and test if all is working.
- Last step would be a cleanup
Altogether that needs 2-3 minutes. If someting goes wrong you can just start the old version again.
Overhead? The watchtower container is 9mb. I'm not sure how often it checks for backups, but I've never noticed it running at all. Usually about the only time I recognize it has updated is I just check my containers and I delete the images that are no longer in use due to updates. -
Usually about the only time I recognize it has updated is I just check my containers and I delete the images that are no longer in use due to updates
Just add --cleanup to the command box and Watchtower will do it for you
-
--cleanup do not work for me.
Yes I know that supossed must work.
-
-
This still works like a charm, thanks!
One question though: Do the arguments "-n1" and "-r" add any value? The command seems to work without them:
docker images -q --filter dangling=true | xargs docker rmihello, it is better to use the native docker function
docker image prune -a
The -a parameter is the crucial bit here.
If you want to force the action to occur without a confirmation prompt, you may add the -f parameter, like so:
docker image prune -af
-
Just add --cleanup to the command box and Watchtower will do it for you
I just wanted to point out for anyone curious... I just had a look at my running Containers... Looks like 2 updated on the 27th, and 1 updated on 3/1... All were removed w/o issue with this option.Thanks @geaves
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!