2016-04-27 13:08:20 -04:00
|
|
|
// +build !daemon
|
|
|
|
|
2016-04-23 21:31:57 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2016-06-22 13:08:04 -04:00
|
|
|
"github.com/spf13/cobra"
|
2016-04-27 13:08:20 -04:00
|
|
|
"runtime"
|
|
|
|
"strings"
|
2016-04-23 21:31:57 -04:00
|
|
|
)
|
|
|
|
|
2016-06-22 13:08:04 -04:00
|
|
|
func newDaemonCommand() *cobra.Command {
|
|
|
|
return &cobra.Command{
|
|
|
|
Use: "daemon",
|
|
|
|
Hidden: true,
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
return runDaemon()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func runDaemon() error {
|
2016-04-23 21:31:57 -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-23 21:31:57 -04:00
|
|
|
}
|