Skip to content

Commit fea63e4

Browse files
arun-guptarafabene
authored andcommitted
fixing #109
1 parent 102c213 commit fea63e4

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

chapters/docker-image.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _Dockerfile_ is usually called _Dockerfile_. The complete list of commands that
2626

2727
=== Create your first Docker image
2828

29-
_Hello World_ Dockerfile is shown:
29+
Create a new text file _Dockerfile_ in an empty directory and use the following contents:
3030

3131
.Hello World Dockerfile
3232
[source, text]
@@ -90,9 +90,9 @@ ubuntu latest a5a467fddcb8 2 days ago
9090
busybox latest 3d5bcd78e074 4 days ago 1.113 MB
9191
----
9292

93-
==== Run WildFly
93+
=== Run WildFly
9494

95-
Create a new text file _Dockerfile_ in an empty directory:
95+
Create a new text file _Dockerfile_ in an empty directory and use the following contents:
9696

9797
[source, text]
9898
----
@@ -107,7 +107,7 @@ Run the container:
107107

108108
docker run -it mywildfly
109109

110-
==== Deploy Java EE 7 Application
110+
=== Deploy Java EE 7 Application
111111

112112
Create a new text file _Dockerfile_ in an empty directory:
113113

@@ -129,6 +129,8 @@ Build the image:
129129

130130
docker build -t movieplex .
131131

132+
=== Dockerfile Command Design Patterns
133+
132134
==== Difference between CMD and ENTRYPOINT
133135

134136
*TL;DR* `CMD` will work for most of the cases.
@@ -166,7 +168,7 @@ This command overrides the entry point to the container to `/bin/cat`. The argum
166168
. Allows tar file auto-extraction in the image, for example, `ADD app.tar.gz /opt/var/myapp`.
167169
. Allows files to be downloaded from a remote URL. However, the downloaded files will become part of the image. This causes the image size to bloat. So its recommended to use `curl` or `wget` to download the archive explicitly, extract, and remove the archive.
168170

169-
=== Import and export images
171+
==== Import and export images
170172

171173
Docker images can be saved using `save` command to a .tar file:
172174

0 commit comments

Comments
 (0)