docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/docker/roadmap/projects/1
Creative Commons Zero v1.0 Universal
1.45k stars 244 forks source link

During the installation process allow the user to specify location for data storage #660

Open JRSofty opened 2 weeks ago

JRSofty commented 2 weeks ago

Tell us about your request I would like to have the possibility to configure the location where the data for the docker-desktop is stored instead of it defaulting to the %USERPROFILE%/AppData/Local/Docker/...

So a simple field in the installation screen that asks the user where they would like to store their data. Naturally it could be filled with a default value, but also allow a user to make a decision as they know their system better than you do.

Which service(s) is this request for? This is primarily for the Docker for Windows application.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? The problem is often the %USERPROFILE% is located on a smaller partition or smaller storage device, at least on machines used for personal development. So to prevent my computers os partition from becoming so full it is not useful I would prefer to have it on a different partition/drive. However I'm not given the chance to make this decision by the installer. So I have to use multiple wsl commands to export, unregister, import the data to a different directory, and this doesn't always work easily.

For example on my work machine, I have a single SSD that is divided into two partitions, one is for the OS and the other Data. When I started using Docker for Windows I found that my OS partition was close to being completely full and it was the vhdx file. So I found the information and used the various wsl commands to move it to my data partition and it has worked fine.

Then this evening, while working on my private development projects on my non-work machine I encountered problems with my XAMPP and decided I would try to move to Docker for my test environment. This machine has an SDD for its OS operations and I have multiple other physical drives installed where I would prefer to store my data. However, for some reason the same wsl commands won't allow me to move the vhdx. Which means docker is useless to me since I can't move it to where I have enough space.

By providing an option during the installation process would make docker for windows a much more flexible option for those who are looking to use it as a localized development environment.