mirror of https://github.com/docker/cli.git
Use spf13/cobra for docker update
This fix is part of the effort to convert commands to spf13/cobra #23211. Thif fix coverted command `docker update` to use spf13/cobra Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
91b49f8538
commit
396d11999f
|
@ -66,6 +66,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
|
||||||
container.NewStopCommand(dockerCli),
|
container.NewStopCommand(dockerCli),
|
||||||
container.NewTopCommand(dockerCli),
|
container.NewTopCommand(dockerCli),
|
||||||
container.NewUnpauseCommand(dockerCli),
|
container.NewUnpauseCommand(dockerCli),
|
||||||
|
container.NewUpdateCommand(dockerCli),
|
||||||
container.NewWaitCommand(dockerCli),
|
container.NewWaitCommand(dockerCli),
|
||||||
image.NewBuildCommand(dockerCli),
|
image.NewBuildCommand(dockerCli),
|
||||||
image.NewHistoryCommand(dockerCli),
|
image.NewHistoryCommand(dockerCli),
|
||||||
|
|
1
usage.go
1
usage.go
|
@ -10,7 +10,6 @@ type Command struct {
|
||||||
var DockerCommandUsage = []Command{
|
var DockerCommandUsage = []Command{
|
||||||
{"exec", "Run a command in a running container"},
|
{"exec", "Run a command in a running container"},
|
||||||
{"inspect", "Return low-level information on a container, image or task"},
|
{"inspect", "Return low-level information on a container, image or task"},
|
||||||
{"update", "Update configuration of one or more containers"},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DockerCommands stores all the docker command
|
// DockerCommands stores all the docker command
|
||||||
|
|
Loading…
Reference in New Issue