mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
5979d6e7e3
This adds consts for the environment variables that are supported by the client. These environment variables are unlikely to change, or at least, unlikely to be removed, but having consts allows for them to be documented. I did not change all occurrences of these variables to use the const, as they're used in various tests, and it's ok to use a fixture for those, but it's nice to have a const available for (external) consumers of the client package, and to have their purpose (and caveats) documented in the code. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
489 B
Go
11 lines
489 B
Go
//go:build linux || freebsd || openbsd || netbsd || darwin || solaris || illumos || dragonfly
|
|
// +build linux freebsd openbsd netbsd darwin solaris illumos dragonfly
|
|
|
|
package client // import "github.com/docker/docker/client"
|
|
|
|
// DefaultDockerHost defines OS-specific default host if the DOCKER_HOST
|
|
// (EnvOverrideHost) environment variable is unset or empty.
|
|
const DefaultDockerHost = "unix:///var/run/docker.sock"
|
|
|
|
const defaultProto = "unix"
|
|
const defaultAddr = "/var/run/docker.sock"
|