Advertisement

Update Docker Containers Automatically Using WATCHTOWER!!

Update Docker Containers Automatically Using WATCHTOWER!! This video is a tutorial on how to install watchtower and use it to automatically update docker containers.

Here are a couple of links to get you started.....





(my github page)

(1:53) For starters, make sure that your docker containers are setup correctly to where they can be updated without losing your configuration.

(3:39) Now we are ready to install watchtower in docker....

sudo vi docker-compose.yaml

watchtower:
container_name: watchtower
restart: always
image: containrrr/watchtower
environment:
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=me@server.com
- WATCHTOWER_NOTIFICATION_EMAIL_TO=them@server.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=email.server
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=user
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --debug true --cleanup true portainer adb tasmoadmin

Once you have all that in there, save the file and

sudo docker-compose up -d

Once its installed you can jump over to portainer to check it out. You should be good to go at this point, it will automatically update the containers as new images come available.

If you like the video please subscribe to my channel. If you have any questions or comments, hit me up in the comments below. As always, if there are any videos out there you would like to see that I don't already have out there, let me know in the comments as well and I will see what I can do.

smart home,home automation,docker,update,watchtower,

Post a Comment

0 Comments