Docker Desktop Custom Install using Command Prompt

Download the Docker Desktop installer.

Open Command Prompt with elevated rights and navigate to the download location.

To install docker desktop and the image files to alternate locations you can use the following command in Command Prompt with elevated rights. i.e.

start /w "" "Docker Desktop Installer.exe" install -accept-license --installation-dir=E:\docker --wsl-default-data-root=E:\docker\data

Options

program install location –installation-dir
Image location –wsl-default-data-root

You may need to add the current user to the docker-users group in Computer Management.

Local Users and Groups > Groups > docker-users

If the custom locations do not inherit the current user permissions you may have to add folder permissions for them also.

Leave a Reply

Your email address will not be published. Required fields are marked *