Docker向け開発

手順:Docker向け開発

Docker イメージからDocker デバイスを作成し、それを使用してアプリケーションのビルド、実行、デバッグを行います。Docker コンテナは仮想マシンと同様に動作しますが、柔軟性が低い代わりにシステムリソースの消費が少なくなります。

Dockerデバイス上でアプリケーションをビルド、実行、デバッグするには、開発ホストにdocker-cli をインストールして設定します。Qt Creator は、Dockerコンテナ内のデバッガや Qtのバージョンなどのビルドおよび実行用キット項目を自動的に検出し、デバイス用のキットを作成します。

Dockerコンテナ内でアプリケーションをビルドする際は、CMakeの使用を推奨します。

注: 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.