我需要在 Windows 2016 Server 上使用 Docker/Windows 容器并准备好 Windows 应用程序以在其上运行。 通过 Powershell 配置 Windows 并不像在 Ubuntu 上那样方便,特别是如果您从未真正使用过 Windows Server 并且需要学习所有 Powershell 命令;)
有没有办法通过 GUI 访问 Windows 容器?
使用 Docker、Ubuntu、VNC 是可能的: Can you run GUI apps in a docker container?
想知道是否可以为 Windows 容器做类似的事情?
(我在本地工作,不使用 Azure。在这里发现了一个类似但未回答的问题:https://stackoverflow.com/questions/32721422/windows-server-containers-azure-how-to-create-a-container-with-gui)
谢谢。
== 更新 ==
根据 2016 年 2 月,RDP 绝对不是一个选项 - 不确定他们是否计划在最终版本中支持它?!
Remote Desktop
Windows Containers cannot be managed/interacted with through a RDP session in TP4.
到目前为止,我通过使用 Midnight Commander 至少拥有了一个不错的文件浏览器。 ,但 Windows 上的命令行仍然不是很有趣。
最佳答案
在此视频中,MS-container-developer Taylor Brown 说他们从 TP3 到 TP4 与 RDP 分手,并且很可能在 RTM Version Server 2016 中不支持 RDP:
从 Dez 开始更新。 2018:
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/
关于docker - 通过 GUI 访问 Windows 2016 Server Container(Docker 容器)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35652644/