mirror of https://github.com/docker/docs.git
Add comments to api/common constants, closes #11583
Signed-off-by: Avi Das <andas222@gmail.com>
This commit is contained in:
parent
e6b7d93072
commit
c136591f40
|
@ -14,11 +14,12 @@ import (
|
||||||
"github.com/docker/libtrust"
|
"github.com/docker/libtrust"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Common constants for daemon and client.
|
||||||
const (
|
const (
|
||||||
APIVERSION version.Version = "1.18"
|
APIVERSION version.Version = "1.18" // Current REST API version
|
||||||
DEFAULTHTTPHOST = "127.0.0.1"
|
DEFAULTHTTPHOST = "127.0.0.1" // Default HTTP Host used if only port is provided to -H flag e.g. docker -d -H tcp://:8080
|
||||||
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
|
DEFAULTUNIXSOCKET = "/var/run/docker.sock" // Docker daemon by default always listens on the default unix socket
|
||||||
DefaultDockerfileName string = "Dockerfile"
|
DefaultDockerfileName string = "Dockerfile" // Default filename with Docker commands, read by docker build
|
||||||
)
|
)
|
||||||
|
|
||||||
func ValidateHost(val string) (string, error) {
|
func ValidateHost(val string) (string, error) {
|
||||||
|
|
Loading…
Reference in New Issue