From 5f9d16e3fd9fbed8eb13da29a139c512cb3e54d1 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Sun, 8 May 2016 12:02:45 -0500 Subject: [PATCH] changed name of commands for cleaning containers and images from docker --- .bash_functions | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.bash_functions b/.bash_functions index 9ecbaf0..674b49e 100644 --- a/.bash_functions +++ b/.bash_functions @@ -136,11 +136,10 @@ function dm() { "list" | "ls" ) docker-machine ls ;; - "rm" | "clean" ) - + "clean" ) docker ps -a | grep "ago" | awk '{print $1}' | xargs docker rm ;; - "rmi" ) + "clean-images" ) if [ -z $2 ]; then $2 = "weeks" fi @@ -156,10 +155,10 @@ function dm() { echo " stop | halt [machine name] Stops the specified docker machine" echo " delete | destroy [machine name] Destroys the specified docker machine" echo " list | ls Lists available machines" - echo " ip [machine name] Prints the ip address for this machine" - echo " rm | clean [text] Deletes all containers matching [text]" - echo " rmi [text] Deletes all images" - echo " * Alias for docker-machine" + echo " ip [machine name] Prints the ip address for this machine" + echo " clean [text] Deletes all containers matching [text] in the current machine" + echo " clean-images [text] Deletes all images in the current machine" + echo " * Alias for docker-machine" ;; * )