2 Star 0 Fork 0

mint/digital_video_introduction

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
clean_docker.sh 608 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zsolt Dollenstein 提交于 2017-06-11 14:51 . add shebangs to shell scripts
#!/bin/bash
EXITED=$(docker ps -q -f status=exited)
DANGLING=$(docker images -q -f "dangling=true")
DANGLING_VOLUME=$(docker volume ls -qf "dangling=true")
if [ "$1" == "--dry-run" ]; then
echo "==> Would stop containers:"
echo $EXITED
echo "==> And images:"
echo $DANGLING
else
if [ -n "$EXITED" ]; then
docker rm $EXITED
else
echo "No containers to remove."
fi
if [ -n "$DANGLING" ]; then
docker rmi $DANGLING
else
echo "No images to remove."
fi
if [ -n "$DANGLING_VOLUME" ]; then
docker volume rm $DANGLING_VOLUME
else
echo "No volumes to remove."
fi
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/icefoxbler/digital_video_introduction.git
git@gitee.com:icefoxbler/digital_video_introduction.git
icefoxbler
digital_video_introduction
digital_video_introduction
master

搜索帮助