针对 Podman 的开发

操作指南:针对 Podman 进行开发

从Podman 镜像创建 Podman 设备,并使用它们来构建、运行和调试应用程序。与 Docker 容器类似,Podman 容器的工作原理类似于虚拟机,但占用更少的系统资源,代价是灵活性稍低。

Podman 支持与Docker 设备复用相同的设备后端,因此工作流、首选项和套件自动检测功能均保持一致。唯一的区别在于,Qt Creator 使用podman CLI 而不是docker-cli 来管理容器。

要在 Podman 设备上构建、运行和调试应用程序,请在开发主机上安装并配置podman 。Qt Creator 会自动检测 Podman 容器中的构建和运行套件项(如调试器和 Qt 版本),并为设备创建相应的套件。

建议您使用 CMake 在 Podman 容器中构建应用程序。

注意:需启用 Docker 插件才能使用该功能。Podman 支持是 Docker 插件的一部分。

要从注册表拉取镜像,请使用podman pull命令。

另请参阅 “启用和禁用插件”、“如何:为 Podman 开发”以及“为 Docker 开发”。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.