我需要在Windows 2016 Server上使用Docker/Windows容器,并准备Windows应用程序在其上运行。通过Powershell配置Windows并不像在Ubuntu上那样方便,特别是如果你从未真正使用过Windows Server并且需要学习所有Powershell命令;)
有没有办法通过GUI访问Windows容器?
使用 Docker、Ubuntu、VNC 是可能的:您可以在 docker 容器中运行 GUI 应用程序吗?
想知道是否可以为Windows容器做类似的事情?
(我正在内部工作,而不是使用 Azure。在这里发现了一个类似但未回答的问题:https://stackoverflow.com/questions/32721422/windows-server-containers-azure-how-to-create-a-container-with-gui)
谢谢。
== 更新 ==
根据 2016 年 2 月,RDP 绝对不是一个选项 - 不确定他们是否计划在最终版本中支持它?!
https://msdn.microsoft.com/en-us/virtualization/windowscontainers/about/work_in_progress#remote-desktop
Remote Desktop
Windows Containers cannot be managed/interacted with through a RDP session in TP4.
到目前为止,我通过使用午夜指挥官设法至少拥有一个不错的文件浏览器,但 Windows 上的命令行仍然没有多大乐趣。
在这个视频中,MS-container开发人员Taylor Brown说他们从TP3到TP4与RDP分手,并且很可能不支持RTM Version Server 2016中的RDP:
https://channel9.msdn.com/Events/TechNetVirtualConference/TechNetVC2016/Day-3-Containers-Session-with-QA
截至2018年Dez的更新:
Server 2019 已发布,RDP 仍然无法/支持所有容器映像。(当然,这对纳米图像没有任何意义)
查看这个不错的介绍,了解已更改的内容:https://stefanscherer.github.io/docker-on-windows-server-2019/
为了有一个更完整的概述,应该提到的是,在野外有一些黑客,RDP可能会在某些图像和设置中工作,例如:https://withinrafael.com/2018/03/09/using-remote-desktop-services-in-containers/