Merge pull request #28354 from ripcurld00d/tag_creation

Change the docker-tag usage text to be clearer
This commit is contained in:
Vincent Demeester 2016-11-18 13:02:40 +01:00 committed by GitHub
commit 6c447f552c
3 changed files with 6 additions and 6 deletions

View file

@ -18,8 +18,8 @@ func NewTagCommand(dockerCli *command.DockerCli) *cobra.Command {
var opts tagOptions
cmd := &cobra.Command{
Use: "tag IMAGE[:TAG] IMAGE[:TAG]",
Short: "Tag an image into a repository",
Use: "tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]",
Short: "Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE",
Args: cli.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
opts.image = args[0]

View file

@ -16,9 +16,9 @@ keywords: "tag, name, image"
# tag
```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:
--help Print usage

View file

@ -2,12 +2,12 @@
% Docker Community
% JUNE 2014
# NAME
docker-tag - Tag an image into a repository
docker-tag - Create a tag `TARGET_IMAGE` that refers to `SOURCE_IMAGE`
# SYNOPSIS
**docker tag**
[**--help**]
NAME[:TAG] NAME[:TAG]
SOURCE_NAME[:TAG] TARGET_NAME[:TAG]
# DESCRIPTION
Assigns a new alias to an image in a registry. An alias refers to the