Skip to content

Commit 0fed568

Browse files
committed
fixing docker#208
1 parent 64a6cbf commit 0fed568

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
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

0 commit comments

Comments
 (0)