Package: docker.io
Version: 1.3.0~dfsg1-1
Severity: normal

Dear Maintainer,

In order to search the Docker Hub Registry, I need to go through a
proxy.  So I modified /etc/default/docker to have a

  export http_proxy="http://127.0.0.1:3128/";

line and restarted the docker daemon.  The same proxy is made available
in my shell sessions and used by my web browser without any problems.

Trying a `sudo docker search term` resulted, after a bit of a wait, in

  2014/10/31 11:51:15 Error response from daemon: Get 
https://index.docker.io/v1/search?q=debian: dial tcp 162.242.195.84:443: 
connection timed out

During the wait I ran

  $ sudo netstat -tunealp | grep docker
  tcp        0      1 172.17.xxx.yyy:37470    162.242.195.84:443      SYN_SENT  
  22152/docker    

to confirm that the docker daemon indeed ignores the proxy setting.

I have tried setting https_proxy in the same way.  Even tried HTTP_PROXY
and HTTPS_PROXY but to no avail.

What did solve my problem was dropping the `export` in the configuration
file.  So, I now have

  http_proxy="http://127.0.0.1:3128/";

as my *only* proxy related setting in /etc/default/docker and searching
the Docker Hub Registry works fine.

Please drop `export` from the commented out line in /etc/default/docker.
While at it, please also look whether the `export` on `TMPDIR` is needed
and makes the docker daemon use the configured value.

Thanks in advance.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 
'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.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.21
ii  iptables             1.4.21-2
ii  libapparmor1         2.9.0-1
ii  libc6                2.19-12
ii  libdevmapper1.02.1   2:1.02.90-2
ii  libsqlite3-0         3.8.7-1
ii  perl                 5.20.1-2

Versions of packages docker.io recommends:
pn  aufs-tools                    <none>
ii  ca-certificates               20140927
pn  cgroupfs-mount | cgroup-lite  <none>
ii  git                           1:2.1.1-1
ii  xz-utils                      5.1.1alpha+20120614-2

Versions of packages docker.io suggests:
pn  btrfs-tools  <none>
ii  debootstrap  1.0.63
pn  lxc          <none>
ii  rinse        3.0.4

-- Configuration Files:
/etc/default/docker changed:
DOCKER_OPTS="--bip 10.0.42.1/16"
http_proxy="http://127.0.0.1:3128/";


-- no debconf information

-- 
Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962               Help support software freedom
                 http://www.fsf.org/jf?referrer=1962


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to