如何使用容器从Azure VM[smalldisk]Windows Server 1809数据中心卸载容器
通常如何使用容器从Azure VM[smalldisk]Windows Server 1809数据中心卸载容器,azure,containers,windows-server,Azure,Containers,Windows Server,通常Windows Server Core将使用~6GB的操作系统磁盘,其中作为Azure VM[smalldisk]Windows Server 1809数据中心的容器映像占用了~16GB操作系统磁盘空间 我想把它恢复到核心大小,即~6GB,因为我不使用任何容器 截至本次发布,Azure没有任何其他smalldisk图像。不过,我可以使用映像Windows Server 2019 Core(使用~6GB),但操作系统磁盘使用126GB,这在我的情况下是没有用的 降低成本的唯一方法是使用可用的s
Windows Server Core
将使用~6GB
的操作系统磁盘,其中作为Azure VM[smalldisk]Windows Server 1809数据中心的容器
映像占用了~16GB
操作系统磁盘空间
我想把它恢复到核心大小,即~6GB
,因为我不使用任何容器
截至本次发布,Azure没有任何其他smalldisk
图像。不过,我可以使用映像Windows Server 2019 Core(使用~6GB
),但操作系统磁盘使用126GB
,这在我的情况下是没有用的
降低成本的唯一方法是使用可用的smalldisk
并卸载额外的容器
我应该关闭/卸载哪些功能
我在下面试过了,但它只能释放~200MB
空间
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
Uninstall-Package -Name docker -ProviderName DockerProvider // not found
但事实并非如此,您可以使用以下图像:
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团队聊天。他们确认它现在不可用。好吧,支持人员通常对该平台不太了解,因此他们可能是错的,只要尝试使用该模板创建vm,只需将2019数据中心smalldisk添加到模板中并尝试部署它。
2019数据中心smalldisk
不允许。只有使用127GB
的2019数据中心
,我只是将其与smalldisk映像一起部署,没有问题