windowsfilter 存储驱动程序

windowsfilter 存储驱动程序是 Windows 上 Docker 引擎的默认存储驱动程序。windowsfilter 驱动程序使用 Windows 原生文件系统层在磁盘上存储 Docker 层和卷数据。windowsfilter 存储驱动程序仅适用于使用 NTFS 格式化的文件系统。

配置 windowsfilter 存储驱动程序

对于大多数使用场景,无需配置 windowsfilter 存储驱动程序。

Windows 上 Docker 引擎的默认存储限制为 127GB。要使用不同的存储大小,请为 windowsfilter 存储驱动程序设置 size 选项。请参阅 windowsfilter 选项

默认情况下,数据存储在 Docker 主机上的 C:\ProgramData\docker 内的 imagewindowsfilter 子目录中。您可以通过在 守护进程配置文件 中配置 data-root 选项来更改存储位置:

{
  "data-root": "d:\\docker"
}

您必须重新启动守护进程才能使配置更改生效。

附加信息

有关 Windows 上容器存储工作原理的更多信息,请参阅 Microsoft 的 Windows 上的容器文档