mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

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>
9 lines
301 B
Go
9 lines
301 B
Go
// +build linux freebsd openbsd darwin
|
|
|
|
package client // import "github.com/docker/docker/client"
|
|
|
|
// DefaultDockerHost defines os specific default if DOCKER_HOST is unset
|
|
const DefaultDockerHost = "unix:///var/run/docker.sock"
|
|
|
|
const defaultProto = "unix"
|
|
const defaultAddr = "/var/run/docker.sock"
|