Cleaning some manifest documentation typos

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki 2018-04-24 15:00:39 +02:00
parent c889ea1bca
commit 55c5e7aa88
3 changed files with 13 additions and 13 deletions

View File

@ -30,7 +30,7 @@ func newCreateListCommand(dockerCli command.Cli) *cobra.Command {
} }
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVar(&opts.insecure, "insecure", false, "allow communication with an insecure registry") flags.BoolVar(&opts.insecure, "insecure", false, "Allow communication with an insecure registry")
flags.BoolVarP(&opts.amend, "amend", "a", false, "Amend an existing manifest list") flags.BoolVarP(&opts.amend, "amend", "a", false, "Amend an existing manifest list")
return cmd return cmd
} }

View File

@ -43,7 +43,7 @@ func newInspectCommand(dockerCli command.Cli) *cobra.Command {
} }
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVar(&opts.insecure, "insecure", false, "allow communication with an insecure registry") flags.BoolVar(&opts.insecure, "insecure", false, "Allow communication with an insecure registry")
flags.BoolVarP(&opts.verbose, "verbose", "v", false, "Output additional info including layers and platform") flags.BoolVarP(&opts.verbose, "verbose", "v", false, "Output additional info including layers and platform")
return cmd return cmd
} }

View File

@ -44,7 +44,7 @@ an image name in `docker pull` and `docker run` commands, for example.
Ideally a manifest list is created from images that are identical in function for Ideally a manifest list is created from images that are identical in function for
different os/arch combinations. For this reason, manifest lists are often referred to as different os/arch combinations. For this reason, manifest lists are often referred to as
"multi-arch images." However, a user could create a manifest list that points "multi-arch images". However, a user could create a manifest list that points
to two images -- one for windows on amd64, and one for darwin on amd64. to two images -- one for windows on amd64, and one for darwin on amd64.
### manifest inspect ### manifest inspect
@ -54,11 +54,11 @@ manifest inspect --help
Usage: docker manifest inspect [OPTIONS] [MANIFEST_LIST] MANIFEST Usage: docker manifest inspect [OPTIONS] [MANIFEST_LIST] MANIFEST
isplay an image manifest, or manifest list Display an image manifest, or manifest list
Options: Options:
--help Print usage --help Print usage
--insecure allow communication with an insecure registry --insecure Allow communication with an insecure registry
-v, --verbose Output additional info including layers and platform -v, --verbose Output additional info including layers and platform
``` ```
@ -70,9 +70,9 @@ Usage: docker manifest create MANIFEST_LIST MANIFEST [MANIFEST...]
Create a local manifest list for annotating and pushing to a registry Create a local manifest list for annotating and pushing to a registry
Options: Options:
-a, --amend Amend an existing manifest list -a, --amend Amend an existing manifest list
--insecure allow communication with an insecure registry --insecure Allow communication with an insecure registry
--help Print usage --help Print usage
``` ```
### manifest annotate ### manifest annotate
@ -97,9 +97,9 @@ Usage: docker manifest push [OPTIONS] MANIFEST_LIST
Push a manifest list to a repository Push a manifest list to a repository
Options: Options:
--help Print usage --help Print usage
--insecure allow push to an insecure registry --insecure Allow push to an insecure registry
-p, --purge Remove the local manifest list after push -p, --purge Remove the local manifest list after push
``` ```
### Working with insecure registries ### Working with insecure registries
@ -108,7 +108,7 @@ The manifest command interacts solely with a Docker registry. Because of this, i
## Examples ## Examples
### inspect an image's manifest object ### Inspect an image's manifest object
```bash ```bash
$ docker manifest inspect hello-world $ docker manifest inspect hello-world
@ -141,7 +141,7 @@ without a tag, or by digest (e.g. hello-world@sha256:f3b3b28a45160805bb16542c953
Here is an example of inspecting an image's manifest with the `--verbose` flag: Here is an example of inspecting an image's manifest with the `--verbose` flag:
```bash ```bash
$ docker manifest inspect -v hello-world $ docker manifest inspect --verbose hello-world
{ {
"Ref": "docker.io/library/hello-world:latest", "Ref": "docker.io/library/hello-world:latest",
"Digest": "sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f", "Digest": "sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f",