File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package commands
22
33import (
44 "os"
5+ "runtime"
56
67 "github.com/docker/cli/cli/command"
78 "github.com/docker/cli/cli/command/builder"
@@ -85,9 +86,6 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
8586 // volume
8687 volume .NewVolumeCommand (dockerCli ),
8788
88- // engine
89- engine .NewEngineCommand (dockerCli ),
90-
9189 // legacy commands may be hidden
9290 hide (system .NewEventsCommand (dockerCli )),
9391 hide (system .NewInfoCommand (dockerCli )),
@@ -124,7 +122,10 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
124122 hide (image .NewSaveCommand (dockerCli )),
125123 hide (image .NewTagCommand (dockerCli )),
126124 )
127-
125+ if runtime .GOOS == "linux" {
126+ // engine
127+ cmd .AddCommand (engine .NewEngineCommand (dockerCli ))
128+ }
128129}
129130
130131func hide (cmd * cobra.Command ) * cobra.Command {
You can’t perform that action at this time.
0 commit comments