Where is docker image location in Windows 10?

前端 未结 13 1611
慢半拍i
慢半拍i 2020-12-08 09:06

I\' using Windows 10 Home operating system. I have installed Docker toolbox.

I have created docker image of my .net core application by using following command.

<
13条回答
  •  北海茫月
    2020-12-08 09:54

    When you have Windows Containers activated, your images are stored by default in C:\ProgramData\Docker\

    To change this, you can edit the C:\ProgramData\Docker\config\daemon.json and add a new "graph" key with the new path... (notice that every backslash is escaped with another backslash)

    Example:

    {
      "registry-mirrors": [],
      "insecure-registries": [],
      "debug": true,
      "experimental": false,
      "graph": "D:\\ProgramData\\Docker"
    }
    

    After that, you need to restart Docker service and you can verify your changes using docker info command and look at Docker Root Dir entry.

提交回复
热议问题