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