mirror of
https://github.com/clearlinux/docker.git
synced 2026-11-21 13:32:48 +00:00
Fix #8048 : make docker images repository:tag work
Make command like "docker images ubuntu:14.04" work and filter out the image with the given tag. Closes #8048. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
//
|
||||
// Usage: docker images [OPTIONS] [REPOSITORY]
|
||||
func (cli *DockerCli) CmdImages(args ...string) error {
|
||||
cmd := Cli.Subcmd("images", []string{"[REPOSITORY]"}, "List images", true)
|
||||
cmd := Cli.Subcmd("images", []string{"[REPOSITORY[:TAG]]"}, "List images", true)
|
||||
quiet := cmd.Bool([]string{"q", "-quiet"}, false, "Only show numeric IDs")
|
||||
all := cmd.Bool([]string{"a", "-all"}, false, "Show all images (default hides intermediate images)")
|
||||
noTrunc := cmd.Bool([]string{"#notrunc", "-no-trunc"}, false, "Don't truncate output")
|
||||
|
||||
Reference in New Issue
Block a user