docker删除image
删除<None><None>镜像
docker rmi $(docker images -f "dangling=true" -q)
如果删除时出现了image is being used by stopped container的错误就先使用一下命令再执行删除指令:
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker stop
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker rm
docker images|grep none|awk '{print $3 }'|xargs docker rmi
再次执行docker rmi + ID