![]() NOTE: You can now get WSL from the Windows Store! Go get it here and then run "wsl -install" at your command line. However, it wouldn’t be fair to compare docker with virtual machines as they are both intended for different uses. Now my Docker WSL 2 VHD is 15 gigs smaller! Learn more about WSL, Windows 11, and WSLg on my latest YouTube! Moreover, the revenue generated by the container service provider platform Docker will see a staggering increase from a mere 465.8 million in the year 2020 to 944 million in the year 2024. ![]() If you're worried, docker system is safer without the -a. Don't delete anything you love or care about. a means all unused images, not just dangling ones. Read about these commands before your try yourself. I'll run docker system prune -a to AGRESSIVELY tidy up. If I'm not using Kubernetes I can turn it off and delete those containers as well from the Docker settings UI. I can run docker images and see that many are out of date or old. That's nice, but it's not a massive improvement. Mine was 47gigs as I use Docker A LOT so when I optimize it from admin PowerShell from the wsl\data folder optimize-vhd -Path. Once it's stopped, you'll want to stop all running WSL2 instances with wsl -shutdown You'll need to stop Docker Desktop by right clicking on its tray icon and choosing Quit Docker Desktop. It's usually in C:\Users\YOURNAME\AppData\Local\Docker\wsl\data and you can often reclaim some of the space if you've cleaned up (pruned your images, etc) with Optimize-Vhd under an administrator PowerShell shell/prompt. Docker Desktop for Windows uses WSL to manage all your images and container files and keeps them in a private virtual hard drive (VHDX) called ext4.vhdx.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |