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:
committed by
Vincent Demeester
parent
7b9ceadc4d
commit
f55d8241cf
7
opts/hosts_unix.go
Normal file
7
opts/hosts_unix.go
Normal file
@@ -0,0 +1,7 @@
|
||||
// +build !windows
|
||||
|
||||
package opts
|
||||
|
||||
import "fmt"
|
||||
|
||||
var DefaultHost = fmt.Sprintf("unix://%s", DefaultUnixSocket)
|
Reference in New Issue
Block a user