mirror of
https://github.com/docker/cli.git
synced 2025-08-29 00:47:54 +03:00
These options should never be changed, so using a const for them instead of a var. Given that these are only used in the opt package itself, they can be un-exported. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
10 lines
326 B
Go
10 lines
326 B
Go
// +build !windows
|
|
|
|
package opts
|
|
|
|
// defaultHost constant defines the default host string used by docker on other hosts than Windows
|
|
const defaultHost = "unix://" + defaultUnixSocket
|
|
|
|
// defaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080
|
|
const defaultHTTPHost = "localhost"
|