2016-04-27 13:08:20 -04:00
|
|
|
// +build !daemon
|
|
|
|
|
2016-04-22 12:37:48 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2016-04-27 13:08:20 -04:00
|
|
|
"runtime"
|
|
|
|
"strings"
|
2016-08-03 12:20:46 -04:00
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
2016-04-22 12:37:48 -04:00
|
|
|
)
|
|
|
|
|
2016-06-22 13:08:04 -04:00
|
|
|
func newDaemonCommand() *cobra.Command {
|
|
|
|
return &cobra.Command{
|
2017-03-04 23:25:11 -05:00
|
|
|
Use: "daemon",
|
|
|
|
Hidden: true,
|
|
|
|
Args: cobra.ArbitraryArgs,
|
|
|
|
DisableFlagParsing: true,
|
2016-06-22 13:08:04 -04:00
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
return runDaemon()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func runDaemon() error {
|
2016-04-22 12:37:48 -04:00
|
|
|
return fmt.Errorf(
|
2016-04-27 13:08:20 -04:00
|
|
|
"`docker daemon` is not supported on %s. Please run `dockerd` directly",
|
|
|
|
strings.Title(runtime.GOOS))
|
2016-04-22 12:37:48 -04:00
|
|
|
}
|