Skip to content

Commit

Permalink
Use https to get the latest docker version
Browse files Browse the repository at this point in the history
To avoid unexpected results since docker was using http.
For instance, my broadband doesn't return not found when it's down but
a html page saying that the internet is down. Docker was showing that
html instead of ignoring it.

Fix #3570

Docker-DCO-1.1-Signed-off-by: Fabio Falci <fabiofalci@gmail.com> (github: fabiofalci)
  • Loading branch information
fabiofalci committed Jan 13, 2014
1 parent 6652416 commit 89bed43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ func ParseHost(defaultHost string, defaultPort int, defaultUnix, addr string) (s
}

func GetReleaseVersion() string {
resp, err := http.Get("http://get.docker.io/latest")
resp, err := http.Get("https://get.docker.io/latest")
if err != nil {
return ""
}
Expand Down

0 comments on commit 89bed43

Please sign in to comment.