summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-04-26 15:47:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-26 15:47:35 +0000
commit4c57d26e33d6cc4ec66968ab488442eb2e730b45 (patch)
treed567fd3a7dc2483449b2c055621b27aa5488f0e0
parent9c6ca57f518ded774b830e4051e630d8cad1d4eb (diff)
parent08ed20c767831124fc241c0d2812e31c649aa5fe (diff)
Merge "Print out error message of docker commands"
-rwxr-xr-xci/build_rpm/build_rpms.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/build_rpm/build_rpms.sh b/ci/build_rpm/build_rpms.sh
index db5a42e9..e4b0cae9 100755
--- a/ci/build_rpm/build_rpms.sh
+++ b/ci/build_rpm/build_rpms.sh
@@ -36,9 +36,9 @@ function cleanup_container {
${containers_to_kill} | egrep -v '(^\s*$)' | sort | uniq)
echo "Stopping containers... $containers_to_kill"
- (sudo docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null
+ sudo docker stop -t 2 ${containers_to_kill}
echo "Removing containers... $containers_to_kill"
- (sudo docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null
+ sudo docker rm -v -f ${containers_to_kill}
if [[ ! -z "$volumes_to_remove" ]]; then
echo "Removing volumes... $volumes_to_remove"