#remove old container and images
- run all container
- remove old container and images,volume
- docker system prune
- docker volume prune
- docker builder prune
- stop all container{docker stop $(docker ps -q)}
- stop docker desktop{Stop-Process -Name "Docker Desktop"}
- wsl --shutdown
- Optimize-VHD -Path C:\Users\yourname\AppData\Local\Docker\wsl\data\ext4.vhdx -Mode Full
- Optimize-VHD -Path C:\Users\yourname\AppData\Local\Docker\wsl\main\ext4.vhdx -Mode Full
- wsl
- start docker desktop{Start-Process "Docker Desktop"}
- start all container{docker start $(docker ps -aq)}
沒有留言:
張貼留言