This is a PowerShell script for installing Docker Desktop on Windows, with custom configurations that allow you to move Docker's data to a separate drive (instead of the default system drive).
- Installs Docker Desktop with customized paths for Docker and WSL 2.
- Ensures Docker-related data, including images and containers, are stored on a secondary drive to conserve space on the system drive.
- Download
install-docker.ps1. - Run the script in PowerShell as Administrator. This script will install Docker Desktop and configure paths for Docker and WSL 2.
Start-Process -Wait -FilePath "Docker Desktop Installer.exe" -ArgumentList `
"install", `
"-accept-license", `
"--installation-dir=`"D:\Dev Program Files\Docker\App`"", `
"--wsl-default-data-root=`"D:\Dev Program Files\Docker\wsl`"", `
"--windows-containers-default-data-root=`"D:\\Dev Program Files\\Docker\\windows`""- Windows 10 or later
- Windows Subsystem for Linux (WSL) version 2
- Download the Docker Desktop installer from Docker's official website.
- Download the install-docker.ps1 script.
- Run the script in a PowerShell terminal as Administrator.
This project is licensed under the MIT License - see the LICENSE file for details.