mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Change the docker-tag usage text to be clearer
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
(cherry picked from commit 039aca05c2
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
530b7cb4a0
commit
19d2e68fb8
3 changed files with 6 additions and 6 deletions
|
@ -18,8 +18,8 @@ func NewTagCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
var opts tagOptions
|
var opts tagOptions
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "tag IMAGE[:TAG] IMAGE[:TAG]",
|
Use: "tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]",
|
||||||
Short: "Tag an image into a repository",
|
Short: "Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE",
|
||||||
Args: cli.ExactArgs(2),
|
Args: cli.ExactArgs(2),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
opts.image = args[0]
|
opts.image = args[0]
|
||||||
|
|
|
@ -16,9 +16,9 @@ keywords: "tag, name, image"
|
||||||
# tag
|
# tag
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker tag IMAGE[:TAG] IMAGE[:TAG]
|
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
|
||||||
|
|
||||||
Tag an image into a repository
|
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
% Docker Community
|
% Docker Community
|
||||||
% JUNE 2014
|
% JUNE 2014
|
||||||
# NAME
|
# NAME
|
||||||
docker-tag - Tag an image into a repository
|
docker-tag - Create a tag `TARGET_IMAGE` that refers to `SOURCE_IMAGE`
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker tag**
|
**docker tag**
|
||||||
[**--help**]
|
[**--help**]
|
||||||
NAME[:TAG] NAME[:TAG]
|
SOURCE_NAME[:TAG] TARGET_NAME[:TAG]
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
Assigns a new alias to an image in a registry. An alias refers to the
|
Assigns a new alias to an image in a registry. An alias refers to the
|
||||||
|
|
Loading…
Add table
Reference in a new issue