Permalink
Browse files

Do not remove stopped _data containers. Fix typo.

  • Loading branch information...
darron committed Feb 19, 2014
1 parent edaf98b commit ba875ccfb55110409da69c718b7cb94edde3b55c
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/octo
View
@@ -60,7 +60,7 @@ case "$1" in
clean)
echo "Cleaning old exited containers."
# TODO: Errors if there's no containers - annoying.
- docker ps -a | grep "Exit" | cut -d ' ' -f 1 | xargs docker rm
+ docker ps -a | grep -v "octohost\/.*\_data*" | grep "Exit" | cut -d ' ' -f 1 | xargs docker rm
echo "Showing all remaining containers."
docker ps -a
echo "Cleaning out all unused images."
@@ -82,7 +82,7 @@ case "$1" in
OLD_ID=$(docker ps | grep "$2:latest" | cut -d ' ' -f 1)
if [ $OLD_ID ]; then
docker kill $OLD_ID
- echo "Removed running conainter."
+ echo "Removed running container."
fi
/usr/bin/redis-cli del frontend:$2.$DOMAIN_SUFFIX >/dev/null
else

0 comments on commit ba875cc

Please sign in to comment.