The indexing of steps in the output of `docker build` starts with `Step 1`.
However, there are several places in the docs that start with `Step 0`.
This fix addresses the issue and changes `Step 0` to `Step 1` (and subsequent steps).
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| ... | ... |
@@ -123,13 +123,13 @@ Then, Docker loads with the `whalesay` image. It already has this image |
| 123 | 123 |
locally as you might recall from the last page. So, Docker doesn't need to |
| 124 | 124 |
download it. |
| 125 | 125 |
|
| 126 |
- Step 0 : FROM docker/whalesay:latest |
|
| 126 |
+ Step 1 : FROM docker/whalesay:latest |
|
| 127 | 127 |
---> fb434121fc77 |
| 128 | 128 |
|
| 129 | 129 |
Docker moves onto the next step which is to update the `apt-get` package |
| 130 | 130 |
manager. This takes a lot of lines, no need to list them all again here. |
| 131 | 131 |
|
| 132 |
- Step 1 : RUN apt-get -y update && apt-get install -y fortunes |
|
| 132 |
+ Step 2 : RUN apt-get -y update && apt-get install -y fortunes |
|
| 133 | 133 |
---> Running in 27d224dfa5b2 |
| 134 | 134 |
Ign http://archive.ubuntu.com trusty InRelease |
| 135 | 135 |
Ign http://archive.ubuntu.com trusty-updates InRelease |
| ... | ... |
@@ -144,7 +144,7 @@ manager. This takes a lot of lines, no need to list them all again here. |
| 144 | 144 |
Then, Docker installs the new `fortunes` software. |
| 145 | 145 |
|
| 146 | 146 |
Removing intermediate container e2a84b5f390f |
| 147 |
- Step 2 : RUN apt-get install -y fortunes |
|
| 147 |
+ Step 3 : RUN apt-get install -y fortunes |
|
| 148 | 148 |
---> Running in 23aa52c1897c |
| 149 | 149 |
Reading package lists... |
| 150 | 150 |
Building dependency tree... |
| ... | ... |
@@ -167,7 +167,7 @@ Then, Docker installs the new `fortunes` software. |
| 167 | 167 |
|
| 168 | 168 |
Finally, Docker finishes the build and reports its outcome. |
| 169 | 169 |
|
| 170 |
- Step 3 : CMD /usr/games/fortune -a | cowsay |
|
| 170 |
+ Step 4 : CMD /usr/games/fortune -a | cowsay |
|
| 171 | 171 |
---> Running in a8e6faa88df3 |
| 172 | 172 |
---> 7d9495d03763 |
| 173 | 173 |
Removing intermediate container a8e6faa88df3 |
| ... | ... |
@@ -86,15 +86,15 @@ the `Using cache` message in the console output. |
| 86 | 86 |
|
| 87 | 87 |
$ docker build -t svendowideit/ambassador . |
| 88 | 88 |
Sending build context to Docker daemon 15.36 kB |
| 89 |
- Step 0 : FROM alpine:3.2 |
|
| 89 |
+ Step 1 : FROM alpine:3.2 |
|
| 90 | 90 |
---> 31f630c65071 |
| 91 |
- Step 1 : MAINTAINER SvenDowideit@home.org.au |
|
| 91 |
+ Step 2 : MAINTAINER SvenDowideit@home.org.au |
|
| 92 | 92 |
---> Using cache |
| 93 | 93 |
---> 2a1c91448f5f |
| 94 |
- Step 2 : RUN apk update && apk add socat && rm -r /var/cache/ |
|
| 94 |
+ Step 3 : RUN apk update && apk add socat && rm -r /var/cache/ |
|
| 95 | 95 |
---> Using cache |
| 96 | 96 |
---> 21ed6e7fbb73 |
| 97 |
- Step 3 : CMD env | grep _TCP= | (sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -t 100000000 TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' && echo wait) | sh |
|
| 97 |
+ Step 4 : CMD env | grep _TCP= | (sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -t 100000000 TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' && echo wait) | sh |
|
| 98 | 98 |
---> Using cache |
| 99 | 99 |
---> 7ea8aef582cc |
| 100 | 100 |
Successfully built 7ea8aef582cc |
| ... | ... |
@@ -231,12 +231,12 @@ specify an arbitrary Git repository by using the `git://` or `git@` scheme. |
| 231 | 231 |
$ docker build -f ctx/Dockerfile http://server/ctx.tar.gz |
| 232 | 232 |
|
| 233 | 233 |
Downloading context: http://server/ctx.tar.gz [===================>] 240 B/240 B |
| 234 |
-Step 0 : FROM busybox |
|
| 234 |
+Step 1 : FROM busybox |
|
| 235 | 235 |
---> 8c2e06607696 |
| 236 |
-Step 1 : ADD ctx/container.cfg / |
|
| 236 |
+Step 2 : ADD ctx/container.cfg / |
|
| 237 | 237 |
---> e7829950cee3 |
| 238 | 238 |
Removing intermediate container b35224abf821 |
| 239 |
-Step 2 : CMD /bin/ls |
|
| 239 |
+Step 3 : CMD /bin/ls |
|
| 240 | 240 |
---> Running in fbc63d321d73 |
| 241 | 241 |
---> 3286931702ad |
| 242 | 242 |
Removing intermediate container fbc63d321d73 |