Тёмный

How To Update Docker Container automatically with nearly zero downtime 

Christian Lempa
Подписаться 219 тыс.
Просмотров 84 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@jacowaes
@jacowaes Год назад
An idea for a related topic. Use the pre-update hooks to make a backup of the container volumes before an upgrade of the container. Because often a new version has code running that alters the data and there is no downgrade possible. Hooks to automatically make backups right before a container image upgrade is an nice addition to a regular backup schedule.
@fabioamado6725
@fabioamado6725 8 месяцев назад
great idea. How can this be done?
@grimm_
@grimm_ Год назад
I absolutely love your channel and especially how you provide writeups in addition to your videos. Great stuff man
@christianlempa
@christianlempa Год назад
Thank you so much 😊
@msteven2
@msteven2 2 года назад
Superb video - thank you! Just the help I needed with my docker server!
@christianlempa
@christianlempa 2 года назад
Thank you :)
@raymondfb
@raymondfb Год назад
Thank you for taking the time to make this video.
@chrisumali9841
@chrisumali9841 2 года назад
Thanks for the demo and info, have a great day
@christianlempa
@christianlempa 2 года назад
Thank you so much :D
@gavinskurrie
@gavinskurrie 6 месяцев назад
Bit late to this video but BRILLIANT! Thanks and hello from Melbourne Aus!!
@christianlempa
@christianlempa 6 месяцев назад
Thanks for watching!
@Chris-B-Chicken
@Chris-B-Chicken 2 года назад
Super cool - wusste nicht das es sowas wie watchtower gibt - danke!
@garypaulson5202
@garypaulson5202 2 года назад
Thank you, this was very useful
@derwintromp1461
@derwintromp1461 10 месяцев назад
Are there any other tutorial that dives a bit deeper into how to configure, for example if you have to let watchtower watch multiple stack in portainer that are from different registry with different access token? All these tutorial seem to be very identical to other tutorials on RU-vid
@majorgear1021
@majorgear1021 3 месяца назад
I’m surprised that you weren’t using gitops to configure and deploy containers! Good video though. I’m in the planning phase of deploying watchtower so I’m learning what configuration options are. I already started writing the github workflow flow to deploy it , but I’m far from committing and pushing that file to github!
@KPunkt-wf9xd
@KPunkt-wf9xd 3 года назад
Super Video. Thank you!
@christianlempa
@christianlempa 3 года назад
Thanks 😊
@fauzifirdaus8200
@fauzifirdaus8200 3 года назад
Thank you!! your video is very helpful
@christianlempa
@christianlempa 3 года назад
Thank you bro 😊
@VisakhVspm
@VisakhVspm 3 года назад
How to handle data volume for example in case of postgres
@rezaz8238
@rezaz8238 Год назад
Thanks for your great videos... I have one question. In 4:55 you said that if we specify a version tag, Watchtower does not update the image. Isn't that wrong? If that is right, then Watchtower almost has no use, because we barely use latest tag in production.
@loganthrockmorton8179
@loganthrockmorton8179 Год назад
What would Watchtower update the container to if you've specified a specific version? The whole point of the version number is to keep it a that version if the image ever needs re-pulled
@rhb.digital
@rhb.digital 2 года назад
great video.. appreciated
@pecasuy
@pecasuy Год назад
Excuse my ignorance, you have to indicate a restart value, or the service having the scheduled schedule, it will execute itself, I ask if there is a docker restart, thanks
@christianlempa
@christianlempa Год назад
Thx for sharing!
@chriskeo392
@chriskeo392 Год назад
Python module Pywin32 doesn't work. Isn't docker supposed to avoid dependency issues?
@huwjones3241
@huwjones3241 3 года назад
Hi there, great video, how would you add an exception to a docker-compose file? For example, I want to deploy Watchtower out but want to avoid it updating my PiHole.
@christianlempa
@christianlempa 3 года назад
Thanks! You can add a label to the container you want to exclude "com.centurylinklabs.watchtower.enable="false""
@Myektaie
@Myektaie Год назад
Nice! Thanks ❤
@christianlempa
@christianlempa Год назад
You’re welcome ☺️
@MohdFhazal
@MohdFhazal 7 месяцев назад
hye can u teach us how to setup a websocket server on docker?
@JuanaMeloUnicEducation
@JuanaMeloUnicEducation 3 года назад
great video, do you know if this watchtower image works with ARM architecture (raspberry Pi 4)
@JuanaMeloUnicEducation
@JuanaMeloUnicEducation 3 года назад
never mind I found it containrrr/watchtower:armhf-
@christianlempa
@christianlempa 3 года назад
that was fast ;) thanks for mentioning!
@ronald0122
@ronald0122 3 года назад
thanks
@markokraljevic1590
@markokraljevic1590 2 года назад
how to have watchtower listen for a signal after successful docker image build in github actions and try to update image then and not just randomly on a cron?
@christianlempa
@christianlempa 2 года назад
That would be a better topic for Ci/CD than watchtower actually.
@NaserAlOqab
@NaserAlOqab 10 месяцев назад
I use this docker compose oneliner to update Portainer, even while the container is up: docker compose -f prod.yml up portainer --pull --build -d
@marcello4258
@marcello4258 Год назад
As I don’t like running container especially not from 3rd party with host root privileges due to security reasons I guess I will just do cron jobs
@modo4211
@modo4211 2 года назад
First of all thanks for the helpful video. How do I handle container updates? I don't mean updating the base image when it changes, but applying regular security updates with apt. What in case of automatic security updates? Set up unattended-upgrades in each Docker container with appropriate update interval or automatically rebuild the image if Dockerfile contains a "RUN apt update && apt upgrade -y" statement or even include unattended-updates as RUN command in Dockerfile and rebuild the image each time? I'm wondering why I can't find many resources on this topic because it's so important. Can you (and/or someone) please cover this question?
@fredrik354
@fredrik354 Год назад
I'm no expert but if I'm honest I've never heard of someone running package updates in a running container. You usually do it when building the image. From my point of view, that's like asking for annoying things to break that you probably won't be able to fix until the builder of the image releases an update - depending on the application/your knowledge. If you're building your images yourself and keep track of all dependencies then it's no biggie of course.
@andresvela5316
@andresvela5316 2 года назад
What about if the docker image is already in the Azure Container Registry? How can you make this update?
@christianlempa
@christianlempa 2 года назад
You can customize the registry, watchtower will always try to pull the latest image version.
@farenhe1t
@farenhe1t 3 года назад
At 08:44, you run the command to schedule Watchtower, but it sits running (probably until it runs). How can you run that command so it drops back to the prompt, but is still scheduled? Thanks!
@christianlempa
@christianlempa 3 года назад
Hey, you simply append a -d in the parameters, then it runs persistently in the background.
@TheRealAnthony_real
@TheRealAnthony_real 2 года назад
What about if you have docker-compose ? Everyone you restart the docker compose if not edited with lastest versions it will revert to what the version in docker compose is ?
@christianlempa
@christianlempa 2 года назад
That shouldn't make a difference. When you're using the :latest tag it should work the same for compose files as well. If you tagged a specific version, it won't be updated
@AlexChama
@AlexChama 2 года назад
@@christianlempa Does updating through Watchtower retain the full control by Portainer though? I'm hesitant to let it just go ham on my images and then find out that suddenly my stacks are decoupled or however you might call it.
@m0rthaus
@m0rthaus 2 года назад
@@AlexChama What many people do is set Watchtower to 'monitor only' mode and then it can email you when updates are available to your containers, and then you can manually action them as desired. For example if there's an upgrade to a new major version for a specific app you may want to run it manually as it has specific steps to follow post-update, like with Nextcloud. The variable to set Watchtower to monitor only mode in your docker compose file is: - WATCHTOWER_MONITOR_ONLY=true
@Doowi92
@Doowi92 2 года назад
Hi, im facing a issue to make watchtower work with my private repository on docker hub it can't authentify... someone has a idea how to make it work with your private repository ? thank you!
@christianlempa
@christianlempa 2 года назад
There is a section in the official docs about private registries, maybe that helps
@Doowi92
@Doowi92 2 года назад
@@christianlempa Hi, thank you for your answer ! i already check that but i could not be able to connect it to my private repository :'( i must have done it not well
@christianlempa
@christianlempa 2 года назад
@@Doowi92 maybe you should join our discord, share some details about your error message and setup, we might be able to help you
@rahulshah1408
@rahulshah1408 Год назад
Thanks! Please enjoy a beverage as a thank you.
@christianlempa
@christianlempa Год назад
Thank you so much 😊
@tgdb-ace
@tgdb-ace Год назад
Lex luthor teaching us coding, Nice
@beardedjer
@beardedjer 3 месяца назад
info for germans: you have to subtract two hours to get the german time
@roya2045
@roya2045 3 года назад
Hi Bro can you make a video on ansible playbook writing pattern in yaml. I have seen lot of videos but they don't explain the pattern there are lot of long spaces in the starting of sentences then there are hyphens in the sentences that too are starting from odd lines hence its getting confusing and difficult to understand not sure if it has a standard pattern/format. can you kindly explain this in the video i am not from a coding or a devops background
@christianlempa
@christianlempa 3 года назад
I need to have a look at this, but yea I'm working to extend my ansible boilerplates that are on my Github page. So you might want to take a look at :)
@user-he8qc4mr4i
@user-he8qc4mr4i Год назад
I used to run a chrono job instead lol
@-a6833
@-a6833 2 года назад
Hey mate did your twitch channel get deleted?
@christianlempa
@christianlempa 2 года назад
Hey, no I changed the name, as I'm mainly planning to do german content only there
@VedantiUjawane
@VedantiUjawane 2 года назад
How to exclude my Nextcloud from watchtower to be auto updated?
@m0rthaus
@m0rthaus 2 года назад
You can exclude individual containers by adding a special label to your container. LABEL com.centurylinklabs.watchtower.monitor-only="true"
@notreallyme425
@notreallyme425 2 года назад
Will Watchtower update itself?
@christianlempa
@christianlempa 2 года назад
I think it does
@jamescoulter9659
@jamescoulter9659 3 года назад
😎
@yukanolive4727
@yukanolive4727 3 года назад
Article Not found ooops :)
@christianlempa
@christianlempa 3 года назад
thanks for mentioning, updated it :)
@markcuello5
@markcuello5 Год назад
HELP
@MrNoBSgiven
@MrNoBSgiven 3 года назад
You should consider legal actions as your termination was clearly wrong. If people like you don't take stand, now do you expect regukar folks to do it? Suing the department and the state has nothing with not respecting people who fight fire. They also are being victimized.
@christianlempa
@christianlempa 3 года назад
I'm not sure what you're talking about?
@MrNoBSgiven
@MrNoBSgiven 3 года назад
@@christianlempa sorry for that. The comment was aimed for some othe video, and the youtube client somehow got confused and attached it to yours. Again, I appologize.
@christianlempa
@christianlempa 3 года назад
Ah that makes sense 😁 np bro!
@mandarihno3463
@mandarihno3463 Год назад
version: "3" services: watchtower: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - TZ=America/New_York - WATCHTOWER_CLEANUP=true - WATCHTOWER_SCHEDULE=0 0 4 * * *
@tcasex
@tcasex 11 месяцев назад
thank you!
Далее
Docker explained simply
18:47
Просмотров 34 тыс.
13+ 2 серия
8:17
Просмотров 281 тыс.
SCRUB: SpaceX Attempt One - Starship Flight Test
9:9:58
18 Weird and Wonderful ways I use Docker
26:18
Просмотров 316 тыс.
100+ Docker Concepts you Need to Know
8:28
Просмотров 1 млн
Watchtower - Update Docker Containers Automatically
13:46
NGINX Tutorial - What is Nginx
14:32
Просмотров 224 тыс.
What's the BEST home server operating system?
17:35
Просмотров 672 тыс.
Don't use local Docker Volumes
12:43
Просмотров 178 тыс.
13+ 2 серия
8:17
Просмотров 281 тыс.