diff --git a/api/client/utils.go b/api/client/utils.go index 0d8310cbba..415046a5f8 100644 --- a/api/client/utils.go +++ b/api/client/utils.go @@ -131,7 +131,7 @@ func (cli *DockerCli) streamHelper(method, path string, setRawTerminal bool, in in = bytes.NewReader([]byte{}) } - req, err := http.NewRequest(method, fmt.Sprintf("http://v%s%s", api.APIVERSION, path), in) + req, err := http.NewRequest(method, fmt.Sprintf("/v%s%s", api.APIVERSION, path), in) if err != nil { return err }