V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
caixiexin
V2EX  ›  问与答

docker for windows 要怎么改变 images 保存的目录呢?

  •  
  •   caixiexin · 2016-08-11 09:18:37 +08:00 · 2747 次点击
    这是一个创建于 2809 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近刚使用了稳定版的 docker for windows ,感觉还不错。但是系统盘容量有限,不想把镜像文件保存在默认的地方,请问下如何设置,让 pull 下来的镜像保存在其他地方呢?
    第 1 条附言  ·  2016-08-17 10:00:13 +08:00
    找到了一篇帖子,貌似是在 hyperv 的虚拟机硬盘里,所以给虚拟机硬盘目录做个符号链接就可以了。
    https://forums.docker.com/t/where-are-images-stored/9794
    4 条回复    2016-08-17 09:59:00 +08:00
    novaeye
        1
    novaeye  
       2016-08-11 10:32:42 +08:00   ❤️ 1
    mklink 链接到你想放的目录不就行了
    caixiexin
        2
    caixiexin  
    OP
       2016-08-11 10:36:18 +08:00
    @novaeye 问题是默认的目录在哪都不知道 ORZ...
    novaeye
        3
    novaeye  
       2016-08-11 10:38:12 +08:00
    难道不是{user.home}/.docker 么?
    caixiexin
        4
    caixiexin  
    OP
       2016-08-17 09:59:00 +08:00
    @novaeye 新版的 docker for windows 不是的,因为是基于 hyperv ,所以应该是在虚拟机的硬盘文件里。在 docker for win 的论坛里找到了一个帖子,里面也是建议用符号链接。 thk
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:10 · PVG 14:10 · LAX 23:10 · JFK 02:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.