在Windows上更改.docker目录 [英] Change .docker directory on Windows

查看:241
本文介绍了在Windows上更改.docker目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Docker放置的Windows上的标准路径是:

The standard path on Windows where Docker puts stuff is:

C:\Users\<USER>\.docker

我们需要把它放在这里:

We need to put it here:

D:\Docker

找到有关在哪里或如何更改该设置的任何信息。任何提示赞赏,谢谢!

We couldn't find any info about where or how to change that setting. Any hint appreciated, thanks!

推荐答案

适用于我们的一个解决方案是创建一个符号链接:

One solution that works for us is creating a symbolic link:

mklink /J "C:\Users\<USER>\.docker" "D:\Docker"

但这不是我们所说的干净的解决方案。

But it's not what we call a clean solution.

问题的信用额度,此答案来自 IMM0rtalis 。)

(All credit for the question & this answer goes to IMM0rtalis.)

这篇关于在Windows上更改.docker目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆