#!/bin/bash 
if [ "$(docker ps | grep -w 16913 | wc -l)" -gt 0 ];then
    docker ps | grep -E '16913' | awk '{print $1}'|xargs -I {} docker exec {} sh -c "rm -rf  /iqiyi_data/ipes" 
    docker ps | grep -w 16913 | awk '{print "docker stop "$1}' | sh
    mv /xyapp/system/miner.plugin-agent.ipk/start.sh /xyapp/system/miner.plugin-agent.ipk/start.sh.bak
    /xyapp/system/miner.plugin-agent.ipk/stop.sh
    wget http://tw15b0178.onething.net:9090/tool/iaas/clear_cache_no_docker.sh  -O /tmp/clear_cache_no_docker.sh  && sh /tmp/clear_cache_no_docker.sh
    mv /xyapp/system/miner.plugin-agent.ipk/start.sh.bak /xyapp/system/miner.plugin-agent.ipk/start.sh
    /xyapp/system/miner.plugin-agent.ipk/start.sh 
else
    echo "no aqy docker instance!!"

fi
