Docker: How to Change drive letters for docker container Images

Matt Thankachan
FAUN — Developer Community 🐾
3 min readAug 1, 2019

--

Working with Docker for Windows can be painful. If you are downloading Microsoft images, it's highly likely that you will be running out of space in your C drive. In order to solve these issues, it would be ideal that we move our downloaded images from the C drive to another drive, maybe D drive.

In order to change the drive letter, please follow the steps below

  • Right Click on the Docker Desktop icon from the bottom right corner of taskbar as shown below
  • select Settings
  • Toggle the Basic to Advanced and modify the JSON file with the value

data-root”: “Drive letter with Location” and click Apply. Docker will restart after applying the changes

  • Open the changed drive path and you can see the list of default folders Docker has created. The most import folder is windowsfilter folder where all the images are stored

Note: I have noticed that changing the JSON file via the UI setting crashes the Docker. The alternate way is to modify the daemon.config file from the C:\ProgramData\Docker\config and then restart the docker. The screenshot below shows the daemon.config file.

Subscribe to FAUN topics and get your weekly curated email of the must-read tech stories, news, and tutorials 🗞️

Follow us on Twitter 🐦 and Facebook 👥 and Instagram 📷 and join our Facebook and Linkedin Groups 💬

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇

--

--