How can I change the installation path of Docker? #493

Open
opened 2025-12-29 01:19:58 +01:00 by adam · 1 comment
Owner

Originally created by @pi3roo on GitHub (Apr 30, 2023).

Hi, how can I change the installation path, in my case Catalina, to another disk?

Originally created by @pi3roo on GitHub (Apr 30, 2023). Hi, how can I change the installation path, in my case Catalina, to another disk?
Author
Owner

@PTAHume commented on GitHub (May 5, 2023):

you can move it using the following, shut down docker then

wsl --shutdown
wsl --export docker-desktop-data C:\data.tar 
wsl --unregister docker-desktop-data
wsl --import docker-desktop-data 'D:\some folder\on some drive\\' 'c:\data.tar' --version 2

restart docker, you can delete the data.tar file or keep it as a backup , docker containers/images should be running from the new location

@PTAHume commented on GitHub (May 5, 2023): you can move it using the following, shut down docker then ``` wsl --shutdown wsl --export docker-desktop-data C:\data.tar wsl --unregister docker-desktop-data wsl --import docker-desktop-data 'D:\some folder\on some drive\\' 'c:\data.tar' --version 2 ``` restart docker, you can delete the data.tar file or keep it as a backup , docker containers/images should be running from the new location
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#493