Ver Fonte

Clean up list of available commands

Solomon Hykes há 12 anos atrás
pai
commit
f20deac47f
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      docker/docker.go
  2. 1 1
      dockerd/dockerd.go

+ 1 - 0
docker/docker.go

@@ -261,6 +261,7 @@ func InteractiveMode() error {
 		"info",
 		"info",
 		"tar",
 		"tar",
 		"web",
 		"web",
+		"images",
 		"docker",
 		"docker",
 	} {
 	} {
 		if err := os.Symlink(dockerPath, path.Join(tmp, cmd)); err != nil {
 		if err := os.Symlink(dockerPath, path.Join(tmp, cmd)); err != nil {

+ 1 - 1
dockerd/dockerd.go

@@ -45,7 +45,7 @@ func (srv *Server) Help() string {
 		{"info", "Display system-wide information"},
 		{"info", "Display system-wide information"},
 		{"tar", "Stream the contents of a container as a tar archive"},
 		{"tar", "Stream the contents of a container as a tar archive"},
 		{"web", "Generate a web UI"},
 		{"web", "Generate a web UI"},
-		{"attach", "Attach to a running container"},
+		{"images", "List images"},
 	} {
 	} {
 		help += fmt.Sprintf("    %-10.10s%s\n", cmd...)
 		help += fmt.Sprintf("    %-10.10s%s\n", cmd...)
 	}
 	}