Added function to update docker-compose containers.

This commit is contained in:
Heavy 2022-02-04 22:41:22 +01:00
parent 2f21f8a1db
commit 89a54cdb62

View File

@ -127,6 +127,16 @@ deblist() {
} }
{{- end }} {{- end }}
# Docker helpers
# Update docker-compose containers
# https://stackoverflow.com/questions/49316462/how-to-update-existing-images-with-docker-compose
dcupdate() {
# TODO: check when sudo is needed
docker-compose pull
docker-compose up -d
docker image prune
# TODO: logfile
}
PATH=$PATH:$HOME/bin PATH=$PATH:$HOME/bin