fix watchtower updates (#1821)

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-02-17 15:41:58 +01:00 committed by GitHub
parent b748ca17e9
commit fa7a24ea85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

4
lib.sh
View File

@ -1394,9 +1394,9 @@ fi
# Update specific Docker image
# docker_update_specific bitwarden_rs Bitwarden RS (actual docker image = $1, the name in text = $2
# docker_update_specific 'bitwarden_rs' 'Bitwarden RS' (docker conainter name = $1, the name in text = $2)
docker_update_specific() {
if does_this_docker_exist "$1" "$2"
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^$1$"
then
docker run --rm --name temporary_watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --cleanup --run-once "$1"
print_text_in_color "$IGreen" "$2 docker image just got updated!"

View File

@ -377,15 +377,15 @@ we have removed Watchtower from this server. Updates will now happen for each co
fi
# Update selected images
# Bitwarden RS
docker_update_specific 'bitwardenrs/server' "Bitwarden RS"
docker_update_specific 'bitwarden_rs' "Bitwarden RS"
# Collabora CODE
docker_update_specific 'collabora/code' 'Collabora'
docker_update_specific 'code' 'Collabora'
# OnlyOffice
docker_update_specific 'onlyoffice/documentserver' 'OnlyOffice'
docker_update_specific 'onlyoffice' 'OnlyOffice'
# Full Text Search
docker_update_specific 'ark74/nc_fts' 'Full Text Search'
docker_update_specific 'fts_esror' 'Full Text Search'
# Plex
docker_update_specific 'plexinc/pms-docker' "Plex Media Server"
docker_update_specific 'plex' "Plex Media Server"
fi
# Cleanup un-used packages