gpt4 book ai didi

linux - DOCKER 如何与 Windows 客户端通信

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:06:49 26 4
gpt4 key购买 nike

我了解 Docker 在 Linux 内核上运行

比方说,我在 CentOS Docker 镜像上部署了一个应用程序(抱歉!!由于保密原因我不能透露该应用程序)。该应用程序已知与 Windows 和 Linux 兼容。

现在,如果我想在已部署的镜像上运行一些程序/脚本,但我使用的客户端是 Windows。这是我的两个问题,

  1. 甚至可以使用 Windows 机器来执行远程 Docker 镜像中的程序/脚本吗?
  2. 如果问题 1 的答案是肯定的,那么 Windows 中的系统调用如何映射到 Docker 的 Linux 环境中的等效系统调用。

最佳答案

Is it even possible to use Windows machine to execute the programs/scripts in the remote Docker image?

否:您需要在 Windows 上运行的 Linux VM 中运行 docker 镜像。
系统调用将针对 VM Linux 内核。

A docker image for Windows (server 2016)将专为 Windows 构建。

关于linux - DOCKER 如何与 Windows 客户端通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33604732/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com