Added function to update docker-compose containers.
This commit is contained in:
parent
2f21f8a1db
commit
89a54cdb62
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user