简体   繁体   English

Windows组件的Docker映像

[英]Docker image for windows components

I have a python script which is used for testing. 我有一个用于测试的python脚本。 This script also uses 'scommand' tool. 该脚本还使用“ scommand”工具。 Its a windows command line tool(basically a .bat file) to execute SOATEST related things ( https://cloudlink.soasta.com/t5/CloudTest-Knowledge-Base/Using-SCommand-to-Deploy-and-Manage-Grids/ta-p/44613 ). 它是Windows命令行工具(基本上是.bat文件),用于执行SOATEST相关的事情( https://cloudlink.soasta.com/t5/CloudTest-Knowledge-Base/Using-SCommand-to-Deploy-and-Manage-Grids / ta-p / 44613 )。

I downloaded Python image and was able to execute few sample python scripts. 我下载了Python图片,并能够执行一些示例python脚本。 But to run this code, I need 'scommand'. 但是要运行此代码,我需要“ scommand”。 I searched online and did not find any image for 'scommand'. 我在网上搜索,未找到“ scommand”的任何图像。 I am using docker in a Ubuntu machine and 'scommand' is a windows tool. 我在Ubuntu机器中使用docker,“ scommand”是Windows工具。 Is there any way, I can get an image of this tool which can work on linux/unix machine? 有什么办法,我可以得到这个可以在linux / unix机器上工作的工具的图像吗? I cannot use a windows machine. 我不能使用Windows机器。

Is there any way that I can only make an image of this tool so that unix/linux docker engine can use it? 有什么办法我只能制作此工具的映像,以便unix / linux docker引擎可以使用它? Or is there any version of docker which can run in Ubuntu and can also take Windows apps also? 还是有任何版本的docker可以在Ubuntu中运行,也可以使用Windows应用程序? I am using following version of docker. 我正在使用以下版本的docker。

Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 OS/Arch:      linux/amd64

Unfortunately, Docker cannot help you with running Windows code on a Linux machine, as containers share the operating system with the host machine. 不幸的是,Docker无法帮助您在Linux机器上运行Windows代码,因为容器与主机共享操作系统。

However, according to the scommand reference , there is a Unix version of the software available. 但是,根据scommand参考 ,可以使用该软件的Unix版本。 In order to get a working image, you can write a Dockerfile based on the Python image in which you download and install the Unix version of scommand (using wget etc.). 为了获得有效的映像,您可以基于Python映像编写一个Dockerfile,在其中下载并安装Unix版本的scommand (使用wget等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM