From 89a54cdb62293141e9656f063cd1e6ea4180718e Mon Sep 17 00:00:00 2001 From: Heavy Date: Fri, 4 Feb 2022 22:41:22 +0100 Subject: [PATCH] Added function to update docker-compose containers. --- dot_bashrc.d/executable_09.functions.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dot_bashrc.d/executable_09.functions.tmpl b/dot_bashrc.d/executable_09.functions.tmpl index 155dfd1..961e24b 100755 --- a/dot_bashrc.d/executable_09.functions.tmpl +++ b/dot_bashrc.d/executable_09.functions.tmpl @@ -127,6 +127,16 @@ deblist() { } {{- 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