Skip to content

Commit dd8c598

Browse files
author
Victor Vieux
committed
Merge pull request moby#1182 from dotcloud/change_build_usage
change tag -> repository name (and optionally a tag) in build usage
2 parents 030cc8d + a97cf23 commit dd8c598

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

commands.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ func mkBuildContext(dockerfile string, files [][2]string) (Archive, error) {
159159

160160
func (cli *DockerCli) CmdBuild(args ...string) error {
161161
cmd := Subcmd("build", "[OPTIONS] PATH | URL | -", "Build a new container image from the source code at PATH")
162-
tag := cmd.String("t", "", "Tag to be applied to the resulting image in case of success")
162+
tag := cmd.String("t", "", "Repository name (and optionally a tag) to be applied to the resulting image in case of success")
163163
suppressOutput := cmd.Bool("q", false, "Suppress verbose build output")
164164
noCache := cmd.Bool("no-cache", false, "Do not use cache when building the image")
165-
166165
if err := cmd.Parse(args); err != nil {
167166
return nil
168167
}

docs/sources/api/docker_remote_api_v1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ Build an image from Dockerfile via stdin
832832

833833
{{ STREAM }}
834834

835-
:query t: tag to be applied to the resulting image in case of success
835+
:query t: repository name to be applied to the resulting image in case of success
836836
:statuscode 200: no error
837837
:statuscode 500: server error
838838

docs/sources/api/docker_remote_api_v1.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ Build an image from Dockerfile via stdin
870870

871871
{{ STREAM }}
872872

873-
:query t: tag to be applied to the resulting image in case of success
873+
:query t: repository name to be applied to the resulting image in case of success
874874
:query remote: resource to fetch, as URI
875875
:statuscode 200: no error
876876
:statuscode 500: server error

docs/sources/api/docker_remote_api_v1.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ Build an image from Dockerfile via stdin
925925

926926
The Content-type header should be set to "application/tar".
927927

928-
:query t: tag to be applied to the resulting image in case of success
928+
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
929929
:query q: suppress verbose build output
930930
:statuscode 200: no error
931931
:statuscode 500: server error

docs/sources/api/docker_remote_api_v1.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ Build an image from Dockerfile via stdin
926926

927927
The Content-type header should be set to "application/tar".
928928

929-
:query t: tag to be applied to the resulting image in case of success
929+
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
930930
:query q: suppress verbose build output
931931
:query nocache: do not use the cache when building the image
932932
:statuscode 200: no error

docs/sources/commandline/command/build.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Usage: docker build [OPTIONS] PATH | URL | -
1212
Build a new container image from the source code at PATH
13-
-t="": Tag to be applied to the resulting image in case of success.
13+
-t="": Repository name (and optionally a tag) to be applied to the resulting image in case of success.
1414
-q=false: Suppress verbose build output.
1515
-no-cache: Do not use the cache when building the image.
1616
When a single Dockerfile is given as URL, then no context is set. When a git repository is set as URL, the repository is used as context
@@ -29,6 +29,13 @@ Examples
2929
| If the absolute path is provided instead of '.', only the files and directories required by the ADD commands from the Dockerfile will be added to the context and transferred to the docker daemon.
3030
|
3131
32+
.. code-block:: bash
33+
34+
docker build -t vieux/apache:2.0 .
35+
36+
| This will build like the preview example, but it will then tag the resulting image, the repository name will be 'vieux/apache' and the tag will be '2.0'
37+
38+
3239
.. code-block:: bash
3340
3441
docker build - < Dockerfile

0 commit comments

Comments
 (0)