1
0
mirror of https://github.com/docker/cli.git synced 2025-09-02 10:21:16 +03:00

cli: new daemon command and new cli package

This patch creates a new cli package that allows to combine both client
and daemon commands (there is only one daemon command: docker daemon).

The `-d` and `--daemon` top-level flags are deprecated and a special
message is added to prompt the user to use `docker daemon`.

Providing top-level daemon-specific flags for client commands result
in an error message prompting the user to use `docker daemon`.

This patch does not break any old but correct usages.

This also makes `-d` and `--daemon` flags, as well as the `daemon`
command illegal in client-only binaries.

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass
2015-05-05 00:18:28 -04:00
committed by Vincent Demeester
parent 7b9ceadc4d
commit f55d8241cf
5 changed files with 37 additions and 17 deletions

7
opts/hosts_unix.go Normal file
View File

@@ -0,0 +1,7 @@
// +build !windows
package opts
import "fmt"
var DefaultHost = fmt.Sprintf("unix://%s", DefaultUnixSocket)