简体   繁体   English

将 Dockerfile/docker-compose.yml 转换为可执行文件

[英]Convert Dockerfile/docker-compose.yml into Executable

I am trying to package an Electron app that relies on several Docker containers into a single executable.我正在尝试将依赖于多个 Docker 容器的 Electron 应用程序打包到一个可执行文件中。 I would like to be able to convert Dockerfile's into executables runnable on Windows.我希望能够将 Dockerfile 转换为可在 Windows 上运行的可执行文件。 Is this possible?这可能吗? Can I pull this off without having Docker installed on the client machine?我可以在没有在客户端机器上安装 Docker 的情况下完成这项工作吗? How can I do this?我怎样才能做到这一点?

It is not possible.这不可能。 Take into account, that docker images are packaged for certain architecture.考虑到 docker 镜像是为特定架构打包的。 Kernel must be compatible.内核必须兼容。 And sure, you need docker engine to work on client machine.当然,您需要 docker 引擎才能在客户端机器上工作。 I think windows is not ready for this.我认为 windows 还没有为此做好准备。

BRs BR

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

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