Browse Source

tiny table heading tweak for #2149 - change ID to CONTAINER ID/IMAGE ID or IMAGE (the later if it could be an ID or a repo:tag

Sven Dowideit 11 years ago
parent
commit
b840b73b08
1 changed files with 3 additions and 3 deletions
  1. 3 3
      commands.go

+ 3 - 3
commands.go

@@ -820,7 +820,7 @@ func (cli *DockerCli) CmdHistory(args ...string) error {
 
 
 	w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 	w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 	if !*quiet {
 	if !*quiet {
-		fmt.Fprintln(w, "ID\tCREATED\tCREATED BY\tSIZE")
+		fmt.Fprintln(w, "IMAGE\tCREATED\tCREATED BY\tSIZE")
 	}
 	}
 
 
 	for _, out := range outs {
 	for _, out := range outs {
@@ -1093,7 +1093,7 @@ func (cli *DockerCli) CmdImages(args ...string) error {
 
 
 		w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 		w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 		if !*quiet {
 		if !*quiet {
-			fmt.Fprintln(w, "REPOSITORY\tTAG\tID\tCREATED\tSIZE")
+			fmt.Fprintln(w, "REPOSITORY\tTAG\tIMAGE ID\tCREATED\tSIZE")
 		}
 		}
 
 
 		for _, out := range outs {
 		for _, out := range outs {
@@ -1186,7 +1186,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
 	}
 	}
 	w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 	w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
 	if !*quiet {
 	if !*quiet {
-		fmt.Fprint(w, "ID\tIMAGE\tCOMMAND\tCREATED\tSTATUS\tPORTS\tNAMES")
+		fmt.Fprint(w, "CONTAINER ID\tIMAGE\tCOMMAND\tCREATED\tSTATUS\tPORTS\tNAMES")
 		if *size {
 		if *size {
 			fmt.Fprintln(w, "\tSIZE")
 			fmt.Fprintln(w, "\tSIZE")
 		} else {
 		} else {