先來兩條命令:docker
1,刪除docker中全部<none>鏡像命令 docker rmi $(docker images|awk '/none/ {print $3}') 2,刪除全部運行容器 docker rm -f $(docker ps -a -q)容器