開発者は、Dockerビルドで使用する新しいイメージを作成し、次のコマンドを使用してイメージのタグを追加しました。 $ docker tag 84fe411926287 local / app:0.4 タグを使用してDockerイメージをビルドするには、次にどのコマンドを実行する必要がありますか?
正解:D
The docker build command is used to build an image from a Dockerfile. The -t option tags the image with a specified name and tag. * Tagging: The docker tag command associates an image ID with a repository and tag. * Building with Tag: The correct command to build the Docker image and tag it as local/app:0.4 is docker build -t local/app:0.4. Option D is the correct command to build and tag the image. Reference: Docker Documentation: Docker Build Reference