Merge pull request #108 from Naoya-Horiguchi/dev/fix_error_msg_in_make_clean

Fix error messages in make clean
pull/117/head
Baohua Yang 2017-12-25 21:17:37 +08:00 committed by GitHub
commit 996d888c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -136,9 +136,9 @@ check: # Check shell scripts grammar
clean: # clean up containers
@echo "Clean all HLF containers and fabric cc images"
@-docker ps -a | awk '{ print $1,$2 }' | grep "hyperledger/fabric" | awk '{print $1 }' | xargs -I {} docker rm -f {}
@-docker rm -f $$(docker ps -a | awk '$$2 ~ /dev-peer/ { print $$1}')
@-docker rmi $$(docker images | awk '$$1 ~ /dev-peer/ { print $$3}')
@-docker ps -a | awk '{ print $$1,$$2 }' | grep "hyperledger/fabric" | awk '{ print $$1 }' | xargs -r -I {} docker rm -f {}
@-docker ps -a | awk '$$2 ~ /dev-peer/ { print $$1 }' | xargs -r -I {} docker rm -f {}
@-docker images | awk '$$1 ~ /dev-peer/ { print $$3 }' | xargs -r -I {} docker rmi -f {}
clean_env: # clean up environment
@echo "Clean all images and containers"