Skip to content

Commit 083cdda

Browse files
author
Mano Marks
authored
Merge pull request docker#209 from arun-gupta/javaland
Fixing a couple of issues
2 parents 64a6cbf + 4a6e932 commit 083cdda

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

developer-tools/java/chapters/ch03-build-image.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ CMD ["/bin/echo", "hello world"]
4141

4242
This image uses `ubuntu` as the base image. `CMD` command defines the command that needs to run. It provides a different entry point of `/bin/echo` and gives the argument "`hello world`".
4343

44-
Build the image:
44+
Build the image using the command:
45+
46+
docker image build -t helloworld .
47+
48+
The following output is shown:
4549

4650
[source, text]
4751
----
@@ -63,7 +67,7 @@ Removing intermediate container 7615d69d04ec
6367
Successfully built 61edf15e4cec
6468
----
6569

66-
`.` in this command is the context for `docker build`.
70+
`.` in this command is the context for `docker image build` command.
6771

6872
List the images available using `docker image ls`:
6973

@@ -209,7 +213,7 @@ Create the Docker image:
209213

210214
[source, text]
211215
----
212-
mvn -f docker-java-sample/helloworld/pom.xml package -Pdocker
216+
mvn -f docker-java-sample/pom.xml package -Pdocker
213217
----
214218

215219
This will show an output like:
@@ -232,7 +236,7 @@ Run the Docker container:
232236

233237
[source, text]
234238
----
235-
mvn -f docker-java-sample/helloworld/pom.xml install -Pdocker
239+
mvn -f docker-java-sample/pom.xml install -Pdocker
236240
----
237241

238242
This will show an output like:

0 commit comments

Comments
 (0)