Skip to content

Commit

Permalink
Add comments to api/common constants, closes moby#11583
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Das <[email protected]>
  • Loading branch information
avidas committed Mar 24, 2015
1 parent e6b7d93 commit c136591
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ import (
"github.com/docker/libtrust"
)

// Common constants for daemon and client.
const (
APIVERSION version.Version = "1.18"
DEFAULTHTTPHOST = "127.0.0.1"
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
DefaultDockerfileName string = "Dockerfile"
APIVERSION version.Version = "1.18" // Current REST API version
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" // Docker daemon by default always listens on the default unix socket
DefaultDockerfileName string = "Dockerfile" // Default filename with Docker commands, read by docker build
)

func ValidateHost(val string) (string, error) {
Expand Down

0 comments on commit c136591

Please sign in to comment.