【问题标题】:How to uninstall containers from Azure VM [smalldisk] Windows Server 1809 Datacenter with Containers如何从 Azure VM [smalldisk] Windows Server 1809 Datacenter with Containers 卸载容器
【发布时间】: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


【解决方案1】:

这不是真的,你可以使用这些图片:

2008-R2-SP1-smalldisk
2012-Datacenter-smalldisk
2012-datacenter-smalldisk-g2
2012-R2-Datacenter-smalldisk
2012-r2-datacenter-smalldisk-g2
2016-Datacenter-Server-Core-smalldisk
2016-datacenter-server-core-smalldisk-g2
2016-Datacenter-smalldisk
2016-datacenter-smalldisk-g2
2019-Datacenter-Core-smalldisk
2019-datacenter-core-smalldisk-g2
2019-Datacenter-smalldisk
2019-datacenter-smalldisk-g2

【讨论】:

  • 我用不了,还和azure team聊过。他们确认它现在不可用。
  • 好吧,支持人员通常对平台并不了解,所以他们可能会出错,只需尝试使用模板创建虚拟机,只需将 2019-Datacenter-smalldisk 添加到 this 模板并尝试部署它。
  • 2019-Datacenter-smalldisk 不允许。只有2019-Datacenter 使用127GB
  • 我只是用那个小磁盘映像部署它,没有问题
猜你喜欢
  • 2021-08-21
  • 2017-09-06
  • 2016-08-19
  • 2020-01-18
  • 1970-01-01
  • 2013-09-29
  • 1970-01-01
  • 2020-11-07
  • 2018-04-30
相关资源
最近更新 更多