Change Docker machine location - Windows

后端 未结 12 1316
执笔经年
执笔经年 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:21

    Put these two commands when running docker quick start terminal.

    I suppose that your new location is "D:\docker" and your new machine name is "docker1"

    export MACHINE_STORAGE_PATH=D:\\docker
    
    docker-machine create --driver=virtualbox docker1
    

    This should create a new machine with specified name in your new location.

提交回复
热议问题