加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

适用于Windows的Docker容器 – 桌面应用程序

发布时间:2020-12-14 04:00:33 所属栏目:Windows 来源:网络整理
导读:如果我创建一个带有 Windows图像的容器,是否可以使用远程连接实际看到桌面,例如,玩扫雷? 我的用例是这样的: 我有数百名用户.每个用户都需要创建我们的基础架构,其中包含大约6台链接在一起的计创建后,用户将使用远程桌面连接在每个桌面上打开一些桌面gui应
如果我创建一个带有 Windows图像的容器,是否可以使用远程连接实际看到桌面,例如,玩扫雷?

我的用例是这样的:

我有数百名用户.每个用户都需要创建我们的基础架构,其中包含大约6台链接在一起的计创建后,用户将使用远程桌面连接在每个桌面上打开一些桌面gui应用程序.

解决方法

不,这不是你能做到的.

目前有两个Windows容器映像,microsoft / windowsservercore和microsoft / nanoserver

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

关于管理Nano服务器的This section也表示

Nano Server is managed remotely. There is no local logon capability at all,nor does it support Terminal Services.

关于Windows Nano服务器,还有this article,肯定不是来自微软

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.

servercore

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虚拟机在内存上并不容易.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读