Docker-alpine: no_proxy environment variable ignored by wget

Created on 4 Mar 2017  路  1Comment  路  Source: gliderlabs/docker-alpine

When I run the latest image of alpine with sh,
and I set

export http_proxy=myproxy.mydomain:1234

and I set

$ export no_proxy=.test.local

and I run

$ wget service.test.local

I see Connecting to proxy ...

I would have expected to not connect to the proxy.

Steps to reproduce when you're not sitting behind a proxy:

docker run --rm -it alpine sh
export http_proxy=foo.bar
export no_proxy=.com
wget google.com

The above should fail, as wget tries to connect to the (presumably) unresponsive proxy.

Do I have a fundamental misunderstanding regarding wget and / or no_proxy? Or is there something wrong with alpine / the wget alpine is using here?

Most helpful comment

It is very possible that busybox wget does not support no_proxy env var. You can apk add wget to get the full featured GNU wget if you need it.

>All comments

It is very possible that busybox wget does not support no_proxy env var. You can apk add wget to get the full featured GNU wget if you need it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ncopa picture ncopa  路  4Comments

konradjurk picture konradjurk  路  5Comments

kalaksi picture kalaksi  路  3Comments

kooksee picture kooksee  路  4Comments

dinogun picture dinogun  路  3Comments