Added docker-compose plugin

Only function so far: docker-compose-fresh, which shuts down a running
docker-compose instance, deletes the containers, and starts up fresh
instances, then tails the container logs.

Converted this from an alias to a function so that a parameter can be
provided for the name of the docker-compose.yaml file name.
This commit is contained in:
Nils Winkler
2016-07-06 08:21:38 +02:00
parent e90b98ef3b
commit 03600e0da1
2 changed files with 22 additions and 1 deletions

View File

@@ -2,4 +2,5 @@ cite 'about-alias'
about-alias 'docker-compose abbreviations'
alias dco="docker-compose"
alias dcofresh="docker-compose stop ; docker-compose rm -f ; docker-compose up -d ; docker-compose logs"
alias dcofresh="docker-compose-fresh"
alias dcol="docker-compose logs -f --tail 100"