Merge pull request #15826 from Microsoft/start-from-one

Builder counts from 1
Upstream-commit: 7a74422724ef3a4ae33f6bcd45ce908be279e476
Component: engine
This commit is contained in:
Alexander Morozov
2015-08-26 13:59:38 -07:00
5 changed files with 30 additions and 13 deletions
@@ -110,9 +110,9 @@ There should be informational output of the reason for failure output to
$ docker build -t fail .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
Step 0 : FROM busybox
Step 1 : FROM busybox
---> 4986bf8c1536
Step 1 : RUN exit 13
Step 2 : RUN exit 13
---> Running in e26670ec7a0a
INFO[0000] The command [/bin/sh -c exit 13] returned a non-zero code: 13
$ echo $?
@@ -167,9 +167,9 @@ you must use `--rm=false`. This does not affect the build cache.
$ docker build .
Uploading context 18.829 MB
Uploading context
Step 0 : FROM busybox
Step 1 : FROM busybox
---> 769b9341d937
Step 1 : CMD echo Hello world
Step 2 : CMD echo Hello world
---> Using cache
---> 99cc1ad10469
Successfully built 99cc1ad10469
@@ -177,9 +177,9 @@ you must use `--rm=false`. This does not affect the build cache.
$ docker build .
Uploading context 6.76 MB
Uploading context
Step 0 : FROM busybox
Step 1 : FROM busybox
---> 769b9341d937
Step 1 : CMD echo Hello world
Step 2 : CMD echo Hello world
---> Using cache
---> 99cc1ad10469
Successfully built 99cc1ad10469
@@ -120,7 +120,7 @@ So, you'll need an entry for both the servers in your local `/etc/hosts` file.
$ docker build -t notarysandbox .
Sending build context to Docker daemon 2.048 kB
Step 0 : FROM debian:jessie
Step 1 : FROM debian:jessie
...
Successfully built 5683f17e9d72
@@ -293,12 +293,12 @@ Now let's take our `Dockerfile` and use the `docker build` command to build an i
$ docker build -t ouruser/sinatra:v2 .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
Step 1 : FROM ubuntu:14.04
---> e54ca5efa2e9
Step 1 : MAINTAINER Kate Smith <ksmith@example.com>
Step 2 : MAINTAINER Kate Smith <ksmith@example.com>
---> Using cache
---> 851baf55332b
Step 2 : RUN apt-get update && apt-get install -y ruby ruby-dev
Step 3 : RUN apt-get update && apt-get install -y ruby ruby-dev
---> Running in 3a2558904e9b
Selecting previously unselected package libasan0:amd64.
(Reading database ... 11518 files and directories currently installed.)
@@ -433,7 +433,7 @@ Now let's take our `Dockerfile` and use the `docker build` command to build an i
Running hooks in /etc/ca-certificates/update.d....done.
---> c55c31703134
Removing intermediate container 3a2558904e9b
Step 3 : RUN gem install sinatra
Step 4 : RUN gem install sinatra
---> Running in 6b81cb6313e5
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.rdoc, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.rdoc, skipping