This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
管理容器
Citrix Hypervisor 包含以下功能,用于增强 Citrix Hypervisor 上的 Docker 容器的部署:
- 面向 Debian 8 和 RHEL/CentOS/Oracle Linux 7 的容器管理功能
- Windows Server 2016 上面向 Windows Server 容器的容器管理功能
如果在 VM 上启用了容器管理,Citrix Hypervisor 将能够识别 VM 中运行的任何 Docker 容器。
安装 Citrix Hypervisor 下载页面提供的容器管理补充包,以使 Citrix Hypervisor 能够发现在每个 VM 上运行的应用程序容器,并在 XenCenter 的基础结构视图中显示这些容器
注意:
容器管理补充包已弃用,将在以后的版本中删除。
XenCenter 可以实现与容器的交互,允许用户执行容器生命周期操作、访问容器控制台和查看日志,以及提供其他性能监控和诊断功能。但是,您必须满足以下部分所述的要求,才能使用 XenCenter 管理容器。
网络要求
托管 VM 必须能够从 Citrix Hypervisor 控制域 (dom0) 进行访问,容器管理功能才可使用。网络拓扑和防火墙必须允许从 dom0 到容器托管的 VM 的出站 SSH(端口 22)或 Docker TLS(端口 2376)连接,具体取决于来宾操作系统。
重要:
有关容器管理网络要求和安全性的详细信息,请参阅容器管理。
使用 XenCenter 管理容器
- 安装您要使用的 Citrix Hypervisor 或 XenServer 版本随附的 XenCenter Build 或更高版本。
- 安装容器管理补充包。
- 创建 Debian 8、RHEL/CentOS/Oracle Linux 7 或 Windows Server 2016 VM。
- 为 VM 启用容器管理。有关详细信息,请参阅容器管理。
要使用 Debian 8、RHEL/CentOS/Oracle Linux 7、Windows Server 2016 VM 来管理 Docker 容器,应先使用 CLI 启用容器管理。在这些 VM 上启用容器管理后,可以使用 XenCenter 执行生命周期操作,例如启动、停止、暂停和恢复容器。
访问 Docker 容器控制台和日志
对于 Linux VM,XenCenter 允许客户访问容器控制台和查看日志,从而管理和监视在 Docker 容器上运行的应用程序。访问容器控制台和日志:
- 在“资源”窗格中选择容器。
-
在容器常规属性部分,选择查看控制台以查看容器控制台。要查看控制台日志,请选择查看日志。
此操作将在运行 XenCenter 的计算机上打开 SSH 客户端。
-
在系统提示时,使用 VM 用户名和密码登录 SSH 客户端。
注意:
客户可以通过配置 SSH 公钥/私钥来自动完成身份验证过程。有关详细信息,请参阅自动完成身份验证过程。
自动完成身份验证过程(可选)
访问容器控制台和日志时,客户需要输入 VM 的登录凭据才能验证 SSH 连接。但是,客户可以自动完成身份验证过程,以免手动输入凭据。要配置自动身份验证过程,请完成以下步骤:
- 生成公钥/私钥对。
-
将 SSH 公钥添加到运行容器的 VM 的用户目录。
对于 RHEL/CentOS/Oracle Linux 7.x 和 Debian 8,请将公钥手动添加到
~/.ssh/authorized_keys
。 - 将 SSH 私钥添加到运行 XenCenter 的计算机上的 %userprofile% 目录中,并将该密钥重命名为
ContainerManagement.ppk
。
共享
共享
在本文中
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.