caixiexin
V2EX  ›  问与答

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

  •  
  •   caixiexin · Aug 11, 2016 · 3169 views
    This topic created in 3645 days ago, the information mentioned may be changed or developed.
    最近刚使用了稳定版的 docker for windows ,感觉还不错。但是系统盘容量有限,不想把镜像文件保存在默认的地方,请问下如何设置,让 pull 下来的镜像保存在其他地方呢?
    Supplement 1  ·  Aug 17, 2016
    找到了一篇帖子,貌似是在 hyperv 的虚拟机硬盘里,所以给虚拟机硬盘目录做个符号链接就可以了。
    https://forums.docker.com/t/where-are-images-stored/9794
    4 replies    2016-08-17 09:59:00 +08:00
    novaeye
        1
    novaeye  
       Aug 11, 2016   ❤️ 1
    mklink 链接到你想放的目录不就行了
    caixiexin
        2
    caixiexin  
    OP
       Aug 11, 2016
    @novaeye 问题是默认的目录在哪都不知道 ORZ...
    novaeye
        3
    novaeye  
       Aug 11, 2016
    难道不是{user.home}/.docker 么?
    caixiexin
        4
    caixiexin  
    OP
       Aug 17, 2016
    @novaeye 新版的 docker for windows 不是的,因为是基于 hyperv ,所以应该是在虚拟机的硬盘文件里。在 docker for win 的论坛里找到了一个帖子,里面也是建议用符号链接。 thk
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2644 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:41 · PVG 23:41 · LAX 08:41 · JFK 11:41
    ♥ Do have faith in what you're doing.