mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6e7405ebd4
Support args to RunCommand Fix docker help text test. Fix for ipv6 tests. Fix TLSverify option. Fix TestDaemonDiscoveryBackendConfigReload Use tempfile for another test. Restore missing flag. Fix tests for removal of shlex. Signed-off-by: Daniel Nephin <dnephin@docker.com>
27 lines
444 B
Go
27 lines
444 B
Go
// +build !daemon
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
"strings"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newDaemonCommand() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "daemon",
|
|
Hidden: true,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return runDaemon()
|
|
},
|
|
}
|
|
}
|
|
|
|
func runDaemon() error {
|
|
return fmt.Errorf(
|
|
"`docker daemon` is not supported on %s. Please run `dockerd` directly",
|
|
strings.Title(runtime.GOOS))
|
|
}
|