[lxc-users] what sets http_proxy?

Stéphane Graber stgraber at ubuntu.com
Wed Jun 1 15:09:40 UTC 2016


On Thu, Jun 02, 2016 at 12:00:45AM +0900, Tomasz Chmielewski wrote:
> I've moved an offline container from one server to another.
> 
> Started it there, and trying to use curl:
> 
> # curl www.example.com
> curl: (5) Could not resolve proxy: fe80::1%eth0]
> 
> It's because this variable is set:
> 
> # echo $http_proxy
> http://[fe80::1%eth0]:13128
> 
> 
> What sets this and why?
> 
> I didn't set it on the host (on the host http_proxy is empty) nor in the
> container.
> 
> 
> Tomasz Chmielewski
> http://wpkg.org

It gets set by LXD when you have an unconfigured lxdbr0 bridge (without
an IP address). Once you configure your bridge's network, that variable
is no longer set.

Do reconfigure lxdbr0 you can do: sudo dpkg-reconfigure -p medium lxd

If you already did configure it and the environment variable is still
exported, you can manually clean it up with: lxc profile edit default

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160601/54777fa0/attachment.sig>


More information about the lxc-users mailing list