【发布时间】:2019-12-19 14:46:25
【问题描述】:
通常Windows Server Core 将使用操作系统磁盘的~6GB,而Azure VM [smalldisk] Windows Server 1809 Datacenter with Containers 映像占用了~16GB 操作系统磁盘空间。
我想把它恢复到核心大小,即~6GB,因为我不使用任何容器。
截至本文发布时,Azure 没有任何其他 smalldisk 图像。但是我可以使用映像 Windows Server 2019 Core(使用 ~6GB),但 OS Disk 使用 126GB,这在我的情况下没有用。
降低成本的唯一方法是使用可用的smalldisk 并卸载多余的容器。
我应该关闭/卸载哪些功能?
我在下面尝试过,但它只能释放 ~200MB 空间。
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
Uninstall-Package -Name docker -ProviderName DockerProvider // not found
【问题讨论】:
-
这应该在 ServerFault 上
标签: azure containers windows-server