Olaf Meeuwissen writes:

> 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.

Actually, I take that partially back.  It turns out to be dependent on
what init system you are using.  For the traditional SysV init and
Upstart the `export` seems to be needed but for systemd it causes the
variable to be ignored, as per the following from my syslog:

  Oct 31 11:07:42 helix systemd[1]: Ignoring invalid environment 'export 
http_proxy=http://127.0.0.1:3128/[10]': /etc/default/docker

Similar log entries for any other environment variable you want to set.

So, instead of just dropping `export`, please add a note to the file
explaining the differences in setting things for the different init
systems.  At least with systemd there should be *no* `export`.

Hope this helps,
-- 
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