Files
chill_notes/Docker/基础/docker镜像清理.md
2026-04-15 23:34:33 +08:00

2 lines
491 B
Markdown
Executable File

1. ==大量====镜像通过命令 docker image prune -f 清理。==
2. ==通过命令 docker images | awk 'NR!=1{print $1":"$2}' | xargs docker rmi 可以批量清除无用的镜像,且不会影响使用中的镜像和基础镜像,满足笔者的需求。== \> 来自 \<[https://www.cnblogs.com/sqgzy/p/11864675.html](https://www.cnblogs.com/sqgzy/p/11864675.html)\> \> 来自 \<[https://www.cnblogs.com/sqgzy/p/11864675.html](https://www.cnblogs.com/sqgzy/p/11864675.html)\>