Change Docker native images location on Windows 10 Pro

前端 未结 7 1939
北荒
北荒 2020-12-29 05:55

This is not a duplicate of Change Docker machine location - Windows

I\'m using docker native, version 1.12.1-stable (build: 7135) on Windows 10 Pro with Hyp

7条回答
  •  滥情空心
    2020-12-29 06:35

    In 2020 to "Change Docker native images location on Windows 10 Pro" is,

    1. quit docker desktop
    2. open/edit configuration file "C:\ProgramData\Docker\config\daemon.json"
    3. add setting "data-root": "D:\Virtual Machines\Docker"
    4. now start docker desktop
    5. run the command "docker info" to see the setting "Docker Root Dir: D:\Virtual Machines\Docker"
    6. pull docker images e.g.: docker pull mongo
    7. you can find the downloaded images in folder "D:\Virtual Machines\Docker\windowsfilter"

提交回复
热议问题