772edd020c
This allows to create a client with default values and override those using functors. As an example, `NewEnvClient()` becomes `NewClientWithOpts(FromEnv)` ; and if you want a different api version for this client : `NewClientWithOpts(FromEnv, WithVersion("1.35"))` Signed-off-by: Vincent Demeester <vincent@sbr.pm>
7 lines
267 B
Go
7 lines
267 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
// DefaultDockerHost defines os specific default if DOCKER_HOST is unset
|
|
const DefaultDockerHost = "npipe:////./pipe/docker_engine"
|
|
|
|
const defaultProto = "npipe"
|
|
const defaultAddr = "//./pipe/docker_engine"
|