1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00
Files
cli/daemon_none.go
Daniel Nephin 08784d7e0e Convert docker root command to use pflag and cobra
Fix the daemon proxy for cobra commands.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-08-25 13:09:03 -04:00

27 lines
443 B
Go

// +build !daemon
package main
import (
"fmt"
"github.com/spf13/cobra"
"runtime"
"strings"
)
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))
}