Skip to content

Commit 911a926

Browse files
committedMay 2, 2017
deploy scripts -> do images cleanup on end
1 parent 7866497 commit 911a926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎scripts/deploy.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919
git pull
2020
docker-compose pull
2121
docker-compose stop
22-
docker-compose rm -f
22+
docker-compose rm -f # Destroy outdated containers.
2323
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
24+
docker rm $(docker ps -a -q) # Destroy unused containers.
25+
docker rmi $(docker images -q) # Destroy unused images.
2426
EOF
2527
)

0 commit comments

Comments
 (0)
Please sign in to comment.