"make clean" emits the following error message:
root@ubuntu:~/docker-compose-files/hyperledger_fabric/v1.0.5# make clean
Clean all HLF containers and fabric cc images
awk: cmd. line:1: { print , }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print , }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print , }
awk: cmd. line:1: ^ unexpected newline or end of string
This is simply because $1 and $2 are not properly escaped.
And we have another messages like below:
"docker rm" requires at least 1 argument(s).
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
Makefile:138: recipe for target 'clean' failed
make: [clean] Error 1 (ignored)
"docker rmi" requires at least 1 argument(s).
See 'docker rmi --help'.
Usage: docker rmi [OPTIONS] IMAGE [IMAGE...]
Remove one or more images
Makefile:138: recipe for target 'clean' failed
make: [clean] Error 1 (ignored)
If we have no target containers or images, we don't want to call docker
rm/rmi. xargs has -r option for this purpose, so let's turn it on.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>