1 Star 0 Fork 2

黄洁冰/docker-wine-linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
clear.sh 740 Bytes
一键复制 编辑 原始数据 按行查看 历史
Acoustroal北慕城南 提交于 2019-05-06 10:47 . Update clear.sh
#!/bin/bash
# Empty the docker container.
# We recommend to clean it at least once a month, this tool can be combined with
# crontab, which means you don't need to do it manually.
# This script also will empty APP_PATH subfile, you can backup it before cleaning if you want.
function CLEAR_CONTAINER() {
for i in $(awk '/docker-wine-linux/{print $1}'< <(sudo docker ps -a))
do
sudo docker stop $i && sudo docker rm $i
done
}
while true;do
read -p 'Are you sure clear the docker container for docker-wine-linux?[Y/N]'
case ${REPLY} in
'Y'|'y')
CLEAR_CONTAINER && echo 'clear done' && exit 0
;;
'N'|'n')
exit 0
;;
*)
echo -e 'Sorry,input error,please input again\n' && continue
;;
esac
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/hfreeze/docker-wine-linux.git
git@gitee.com:hfreeze/docker-wine-linux.git
hfreeze
docker-wine-linux
docker-wine-linux
master

搜索帮助