Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

boot2docker not detecting NO_PROXY environment variable #362

@steevmi1

Description

@steevmi1

If you have both "no_proxy" and "NO_PROXY" set in your environment, boot2docker shellinit only gives you the correct no_proxy, and docker commands fail until you manually fix NO_PROXY.

% export no_proxy=1.2.3.4
% export NO_PROXY=1.2.3.4
% boot2docker shellinit
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/key.pem
    export DOCKER_HOST=tcp://192.168.59.104:2376
    export DOCKER_CERT_PATH=/Users/steevmi1/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1
    export no_proxy=1.2.3.4,192.168.59.104
% eval $(boot2docker shellinit)
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/steevmi1/.boot2docker/certs/boot2docker-vm/key.pem
% echo $no_proxy
1.2.3.4,192.168.59.104
% echo $NO_PROXY
1.2.3.4
% docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): darwin/amd64
FATA[0000] An error occurred trying to connect: Get https://192.168.59.104:2376/v1.18/version: Forbidden
% export NO_PROXY=$no_proxy
% docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): darwin/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 4749651
OS/Arch (server): linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions