Package: docker.io Version: 0.9.1~dfsg1-2 Severity: important Hi Paul,
It appears that it is not possible to query the current docker version without the client hitting https://get.docker.io/latest to find the latest upstream version. This could (arguably) allow DotCloud to track the usage habits of Debian users. Given that this package is provided by Debian, this version check is not appropriate. This has already been raised upstream as issue #4802 [1]. Perhaps the attached patch against current docker HEAD (afaab73) would be appropriate? Thanks, Jon [1] https://github.com/dotcloud/docker/issues/4802 -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (650, 'testing'), (600, 'unstable'), (450, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages docker.io depends on: ii adduser 3.113+nmu3 ii init-system-helpers 1.18 ii iptables 1.4.21-1 ii libapparmor1 2.8.0-5+b1 ii libc6 2.18-5 ii libdevmapper1.02.1 2:1.02.83-2 ii libsqlite3-0 3.8.4.3-1 ii perl 5.18.2-2+b1 Versions of packages docker.io recommends: ii aufs-tools 1:3.2+20130722-1.1 ii ca-certificates 20140325 ii cgroupfs-mount 1.0 ii git 1:2.0.0~rc0-2 ii xz-utils 5.1.1alpha+20120614-2 Versions of packages docker.io suggests: ii btrfs-tools 3.14.1-1 ii debootstrap 1.0.59 pn lxc <none> ii rinse 2.0.1-1 -- no debconf information
>From afaab73f03e0a1a91a5e8baafacbb7e096381c5c Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan <jmccro...@gmail.com> Date: Mon, 5 May 2014 22:20:27 +0100 Subject: [PATCH] utils.go: Make GetReleaseVersion() a noop Signed-off-by: Jonathan McCrohan <jmccro...@gmail.com> --- utils/utils.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 066cfba..c2e3a07 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -926,19 +926,7 @@ func ParseHost(defaultHost string, defaultUnix, addr string) (string, error) { } func GetReleaseVersion() string { - resp, err := http.Get("https://get.docker.io/latest") - if err != nil { - return "" - } - defer resp.Body.Close() - if resp.ContentLength > 24 || resp.StatusCode != 200 { - return "" - } - body, err := ioutil.ReadAll(resp.Body) - if err != nil { - return "" - } - return strings.TrimSpace(string(body)) + return "" } // Get a repos name and returns the right reposName + tag -- 2.0.0.rc0