docker清理

Ethereal Lv4

docker系统清理

1
docker system prune -f --all

docker desktop清理

如果使用的是windows专业版,则可以使用

1
optimize-vhd -Path "path to vhdx" -Mode full

否则可以使用

1
2
3
4
5
6
7
8
wsl --shutdown
diskpart
# open window Diskpart
select vdisk file="path to vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit

参考

Optimize-Vhd Not Found in Windows 10 Home - Microsoft Community

  • Title: docker清理
  • Author: Ethereal
  • Created at: 2024-02-26 11:48:07
  • Updated at: 2024-11-13 23:57:46
  • Link: https://ethereal-o.github.io/2024/02/26/docker清理/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments