Change Docker machine location - Windows

后端 未结 12 1315
执笔经年
执笔经年 2020-12-02 05:08

I am using docker toolbox on Windows 7 to run docker. (docker version 1.9.1)

As it turns out, the docker machine creates its VM at C:\\Users\\username\\.docker\\mach

12条回答
  •  被撕碎了的回忆
    2020-12-02 05:23

    You can move .docker directory to another drive and create a junction point to it.

    Please note that regular shortcut will not work.

    For example:

    Move .docker directory from C:\Users\username to D:\

    and run:

    C:\Users\username>mklink /j .docker D:\.docker
    Junction created for .docker <<===>> D:\.docker
    

提交回复
热议问题