git://git.halfball.org
/
ansiblebook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddafd17
)
add clean target
author
Lorin Hochstein
<lhochstein@netflix.com>
Sat, 28 Jan 2017 17:59:36 +0000
(09:59 -0800)
committer
Lorin Hochstein
<lhochstein@netflix.com>
Sat, 28 Jan 2017 17:59:36 +0000
(09:59 -0800)
ch13/Makefile
patch
|
blob
|
history
diff --git
a/ch13/Makefile
b/ch13/Makefile
index
4511416
..
22f503c
100644
(file)
--- a/
ch13/Makefile
+++ b/
ch13/Makefile
@@
-1,4
+1,4
@@
-.PHONY: build run stop
+.PHONY: build run stop
clean
FLAGS=#--debug
@@
-10,3
+10,8
@@
run:
stop:
ansible-container stop
+
+# Delete images
+clean:
+ docker ps -a | awk 'NR!=1 { print $1 }' | xargs docker rm
+ docker images | awk 'NR>1' | awk '/ch13.*/ {print $1":"$2}' | xargs docker rmi