Public bug reported:

If you install docker.io from archive, you get /etc/default/docker populated 
with a string like:
# 
# If you need Docker to use an HTTP proxy, it can also be specified here.
# export http_proxy=http://localhost:3128/

Simply uncommenting that line and adjusting to your http host will not
work.

This is because that file is loaded as an EnviornmentFile by systemd in 
/lib/systemd/system/docker.service
 EnvironmentFile=-/etc/default/docker

And apparently, systemd silently ignores the line because it is not
<key>=<value>

To fix this, you have to:
http_proxy=http://your.proxy:3128/ 
rather than
export http_proxy=http://your.proxy:3128

I'm not sure if this is easily accomplished or not while retaining
support for that file being loaded by sysvinit also.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: docker.io 1.6.2~dfsg1-1ubuntu2 [modified: 
lib/systemd/system/docker.service]
ProcVersionSignature: User Name 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic x86_64
ApportVersion: 2.17.3-0ubuntu4
Architecture: amd64
Date: Fri Jun 26 14:57:10 2015
Ec2AMI: ami-0000043a
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: docker.io
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.default.docker: 2015-06-26T14:56:57.885900

** Affects: docker.io (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images third-party-packages wily

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1469204

Title:
  /etc/default/docker format is wrong for systemd service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1469204/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to