为 Docker 开发

如何为 Docker 开发

Docker 映像中创建 Docker 设备,并用它们来构建、运行和调试应用程序。Docker 容器的运行方式与虚拟机类似,但使用的系统资源较少,但灵活性较低。

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

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

注意: 启用 Docker 插件才能使用它。

要从 Docker hub 或其他注册中心提取映像,请使用docker pull命令。

另请参阅 启用和禁用插件以及如何为 Docker 开发:为 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.