github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/cmd/docker/daemon_none.go (about) 1 // +build !daemon 2 3 package main 4 5 import ( 6 "fmt" 7 "runtime" 8 "strings" 9 10 "github.com/spf13/cobra" 11 ) 12 13 func newDaemonCommand() *cobra.Command { 14 return &cobra.Command{ 15 Use: "daemon", 16 Hidden: true, 17 RunE: func(cmd *cobra.Command, args []string) error { 18 return runDaemon() 19 }, 20 } 21 } 22 23 func runDaemon() error { 24 return fmt.Errorf( 25 "`docker daemon` is not supported on %s. Please run `dockerd` directly", 26 strings.Title(runtime.GOOS)) 27 }