不到断气不罢休 发表于 2025-2-27 06:28:54

Docker Desktop镜像路径修改一直报错

一 点击Apply & Restart报错

   
Docker Desktop


Error migrating WSL disk


An error occurred while migrating the Docker Desktop WSL data disk to its new location:

moving disk file: rename C:\Users\Lenovo\AppData\Local\Docker\wsl\disk\docker_data.vhdx E:\Docker\wsl\DockerDesktopWSL\disk\docker_data.vhdx: The system cannot move the file to a different disk drive.

Disk image location will be reverted to its original setting.

 
https://i-blog.csdnimg.cn/direct/3974fd92e5b54ce9b42aeb3aebbd25da.png
二 办理办法

        1、删除默认路径的文件

        C:\Users\Lenovo\AppData\Local\Docker\wsl (我是新安装的docker desktop,假如有在用镜像请先导出)
        2、文件被占用

        假如文件被占用,请先退出docker desktop,假如还删除不掉,注销电脑后再实验删除,删除后打开程序,修改镜像路径,假如修改途中有报错可多实验几次
 
 
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Docker Desktop镜像路径修改一直报错