Files
docker-cli/cli/command/container
Sebastiaan van Stijn 91bc4ddde2 Fix: proxy-configuration being ignored on docker create
Proxies configured in config.json were only taking effect
when using `docker run`, but were being ignored when
using `docker create`.

Before this change:

    echo '{"proxies":{"default":{"httpProxy":"httpProxy","httpsProxy":"httpsProxy","noProxy":"noProxy","ftpProxy":"ftpProxy"}}}' > config.json
    docker inspect --format '{{.Config.Env}}' $(docker --config=./ create busybox)
    [PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]

With this change applied:

    echo '{"proxies":{"default":{"httpProxy":"httpProxy","httpsProxy":"httpsProxy","noProxy":"noProxy","ftpProxy":"ftpProxy"}}}' > config.json
    docker inspect --format '{{.Config.Env}}' $(docker --config=./ create busybox)
    [NO_PROXY=noProxy no_proxy=noProxy FTP_PROXY=ftpProxy ftp_proxy=ftpProxy HTTP_PROXY=httpProxy http_proxy=httpProxy HTTPS_PROXY=httpsProxy https_proxy=httpsProxy PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]

Reported-by: Silvano Cirujano Cuesta <Silvanoc@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-19 12:33:33 +01:00
..
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2017-10-26 12:21:02 -04:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-10-23 17:05:44 +02:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-09-05 00:01:16 +00:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2017-05-08 15:57:56 -04:00
2018-10-23 17:05:44 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00