Docker Windows 的容器 - 桌面应用程序
Docker Container for Windows - desktop app
如果我创建一个带有 windows 图像的容器,是否可以使用远程连接实际看到桌面,例如玩扫雷?
我的用例是这样的:
我有数百个用户。每个用户都需要创建自己的基础设施,该基础设施由连接在一起的大约 6 台机器组成。创建后,用户将使用远程桌面连接在每个应用程序上打开一些桌面 gui 应用程序。
不,这不是你能做的。
目前有两个 Windows 容器镜像,microsoft/windowsservercore
和 microsoft/nanoserver
纳米服务器
This blog post 关于 TP4(早期版本之一)说
The only option available when logging into console of a virtual machine running Nano Server or connecting a crash cart to a physical Nano Server is this very plain emergency console
This section 关于管理 Nano 服务器也指出
Nano Server is managed remotely. There is no local logon capability at all, nor does it support Terminal Services.
还有this article,诚然不是微软的,关于Windows Nano server
Nano Server strips back the operating system further still, dropping things like the GUI stack, 32-bit Win32 support, local logins, and remote desktop support.
Nano Server is designed for two kinds of workload: cloud apps built on runtimes such as .NET, Java, Node.js, or Python, and cloud infrastructure, such as hosting Hyper-V virtual machines.
服务器核心
Docker 博客有一个非常有趣的条目
Introducing Docker for Windows Server 2016。这部分解决了 GUI 应用程序的问题
The Windows Server Core image comes with a mostly complete userland with the processes and DLLs found on a standard Windows Server Core install. With the exception of GUI apps and apps requiring Windows Remote Desktop, most apps that run on Windows Server can be dockerized to run in an image based on microsoft/windowsservercore with minimal effort.
如果您想设置那种环境,一种选择是使用 Vagrant 之类的东西来协调启动和配置常规 windows VM。尽管 6 windows 个虚拟机在内存上并不容易。
如果我创建一个带有 windows 图像的容器,是否可以使用远程连接实际看到桌面,例如玩扫雷?
我的用例是这样的:
我有数百个用户。每个用户都需要创建自己的基础设施,该基础设施由连接在一起的大约 6 台机器组成。创建后,用户将使用远程桌面连接在每个应用程序上打开一些桌面 gui 应用程序。
不,这不是你能做的。
目前有两个 Windows 容器镜像,microsoft/windowsservercore
和 microsoft/nanoserver
纳米服务器
This blog post 关于 TP4(早期版本之一)说
The only option available when logging into console of a virtual machine running Nano Server or connecting a crash cart to a physical Nano Server is this very plain emergency console
This section 关于管理 Nano 服务器也指出
Nano Server is managed remotely. There is no local logon capability at all, nor does it support Terminal Services.
还有this article,诚然不是微软的,关于Windows Nano server
Nano Server strips back the operating system further still, dropping things like the GUI stack, 32-bit Win32 support, local logins, and remote desktop support.
Nano Server is designed for two kinds of workload: cloud apps built on runtimes such as .NET, Java, Node.js, or Python, and cloud infrastructure, such as hosting Hyper-V virtual machines.
服务器核心
Docker 博客有一个非常有趣的条目 Introducing Docker for Windows Server 2016。这部分解决了 GUI 应用程序的问题
The Windows Server Core image comes with a mostly complete userland with the processes and DLLs found on a standard Windows Server Core install. With the exception of GUI apps and apps requiring Windows Remote Desktop, most apps that run on Windows Server can be dockerized to run in an image based on microsoft/windowsservercore with minimal effort.
如果您想设置那种环境,一种选择是使用 Vagrant 之类的东西来协调启动和配置常规 windows VM。尽管 6 windows 个虚拟机在内存上并不容易。