针对 Docker 进行开发

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

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

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

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

注意:需启用 Docker 插件才能使用该功能。

要从 Docker Hub 或其他注册表拉取镜像,请使用docker pull命令。

另请参阅 “启用和禁用插件”以及“操作指南:针对 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.