From 7524054c12347034137942115cb6af705201d308 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 21 Aug 2017 12:08:31 -0400 Subject: [PATCH] prune images --- scripts/start.ps1 | 4 +++- scripts/start.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/start.ps1 b/scripts/start.ps1 index 0dce004a6..8ce56b7d6 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -11,11 +11,13 @@ if($dockerDir -eq "") { docker --version docker-compose --version +docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down + $letsEncryptPath = "${outputDir}/letsencrypt" if(Test-Path -Path $letsEncryptPath) { docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot ` renew --logs-dir /etc/letsencrypt/logs } -docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml up -d +docker image prune -f diff --git a/scripts/start.sh b/scripts/start.sh index d3d9af290..93376b582 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -24,6 +24,8 @@ fi docker --version docker-compose --version +docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down + LETS_ENCRYPT_PATH = "${outputDir}/letsencrypt" if [ -d "LETS_ENCRYPT_PATH" ] then @@ -31,5 +33,5 @@ then renew --logs-dir /etc/letsencrypt/logs fi -docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml up -d +docker image prune -f