From b42746c493137c323594acd7fcb10d4faffdb1ba Mon Sep 17 00:00:00 2001 From: Igor Klimer Date: Tue, 14 Jan 2025 17:26:05 +0000 Subject: [PATCH] Update run-tests.md Fix typo when targeting the `test` stage. Introduced in https://github.com/docker/docs/pull/19390 --- content/guides/java/run-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/guides/java/run-tests.md b/content/guides/java/run-tests.md index e1d26c961c1..c88025ad82b 100644 --- a/content/guides/java/run-tests.md +++ b/content/guides/java/run-tests.md @@ -95,7 +95,7 @@ fail if the tests fail. Finally, you updated the deps stage to be based on the base stage and removed the instructions that are now in the base stage. -Run the following command to build a new image using the test stage as the target and view the test results. Include `--progress=plain` to view the build output, `--no-cache` to ensure the tests always run, and `--target-test` to target the test stage. +Run the following command to build a new image using the test stage as the target and view the test results. Include `--progress=plain` to view the build output, `--no-cache` to ensure the tests always run, and `--target test` to target the test stage. Now, build your image and run your tests. You'll run the `docker build` command and add the `--target test` flag so that you specifically run the test build stage.