From c136591f40c34de51bbb0691ae69f393ff8b2f0e Mon Sep 17 00:00:00 2001 From: Avi Das Date: Mon, 23 Mar 2015 20:30:09 -0500 Subject: [PATCH] Add comments to api/common constants, closes #11583 Signed-off-by: Avi Das --- api/common.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/common.go b/api/common.go index f6a0bc4883..a0f44e860c 100644 --- a/api/common.go +++ b/api/common.go @@ -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) {