Use spf13/cobra for docker logs

This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command `docker logs` to use spf13/cobra

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2016-06-05 15:50:48 -07:00
parent 894cc1f201
commit a5c6af94b1
2 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
rootCmd.AddCommand( rootCmd.AddCommand(
container.NewCreateCommand(dockerCli), container.NewCreateCommand(dockerCli),
container.NewExportCommand(dockerCli), container.NewExportCommand(dockerCli),
container.NewLogsCommand(dockerCli),
container.NewRunCommand(dockerCli), container.NewRunCommand(dockerCli),
container.NewStopCommand(dockerCli), container.NewStopCommand(dockerCli),
image.NewRemoveCommand(dockerCli), image.NewRemoveCommand(dockerCli),

View File

@ -24,7 +24,6 @@ var DockerCommandUsage = []Command{
{"load", "Load an image from a tar archive or STDIN"}, {"load", "Load an image from a tar archive or STDIN"},
{"login", "Log in to a Docker registry"}, {"login", "Log in to a Docker registry"},
{"logout", "Log out from a Docker registry"}, {"logout", "Log out from a Docker registry"},
{"logs", "Fetch the logs of a container"},
{"network", "Manage Docker networks"}, {"network", "Manage Docker networks"},
{"pause", "Pause all processes within a container"}, {"pause", "Pause all processes within a container"},
{"port", "List port mappings or a specific mapping for the CONTAINER"}, {"port", "List port mappings or a specific mapping for the CONTAINER"},