在Docker for Windows中运行正常的Win32应用程序 [英] Run normal Win32 applications in Docker for Windows

查看:405
本文介绍了在Docker for Windows中运行正常的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Windows的Docker的概念,我有点困惑。
我可以为Windows(和Server 2016的Windows主机)创建一个docker容器,并将正常的Windows应用程序安装到该容器中(简单的:notepad.exe;在Delphi中编写的一些更复杂的应用程序)?
我可以在启用的每个Docker(Windows)主机上运行此容器?容器是否自动启动应用程序?或者Windows Docker容器只能提供像IIS网站这样的服务或WebBased应用程序?

解决方案

如果你有Windows Server 2016,你将能够启动Windows容器(并且您将需要一个Linux服务器来启动Linux容器)。



查看这些链接



https://msdn.microsoft.com/en-us / virtualization / windowscontainers / quick_start / manage_docker



https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/container_setup



https://msdn.microsoft.com/en-us/virtualization/windowscontainers/conta iners_welcome



在Windows中,您的Dockerfile将以

开始

FROM Windowsservercore



而不是更常见的



FROM debian

FROM ubuntu



(Windows)Docker中的IIS



https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/manage_docker



或SQL Server docker



http://26thcentury.com/2016/01/03/dockerfile-to-create-sql-server-express-windows-container-image/


I'm a little bit confused about the concept of Docker for Windows. Can I create a docker container for windows (and a windows host like Server 2016) and install a normal windows application into that container (simple: notepad.exe; advanced some more complex application programmed in Delphi)? And can I run this container on every Docker enabled (windows) Host? Does the container starts automatically the application inside? Or can a windows docker container only provide service or webbased applications like an IIS website?

解决方案

if you have Windows Server 2016, you will be able to launch Windows containers (and you will need a Linux server to launch Linux containers).

See those links

https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/manage_docker

https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/container_setup

https://msdn.microsoft.com/en-us/virtualization/windowscontainers/containers_welcome

In Windows, your Dockerfile will start with

FROM windowsservercore

instead of the more usual

FROM debian or FROM ubuntu

See some examples of IIS in (Windows) docker

https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/manage_docker

or a SQL Server in docker

http://26thcentury.com/2016/01/03/dockerfile-to-create-sql-server-express-windows-container-image/

这篇关于在Docker for Windows中运行正常的Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆