If you're running Docker with WSL2 based engine, and wish to move your C:\ProgramData\Docker to other drive to free up the space, you can use this command
wsl --export docker-desktop-data docker-desktop-data.tar
wsl --unregister docker-desktop-data
wsl --import docker-desktop-data E:\dockerdata\ docker-desktop-data.tar --version 2
- In this example, I move the data folder to E:\dockerdata.
- You'll need to restart Docker.
- Tested working on Docker engine: v19.03.13
Credit goes to: https://github.com/docker/for-win/issues/185#issuecomment-640521418
Comments
Post a Comment