docker-machine ssh default
sudo -s
echo "export HTTP_PROXY=http://username:
password@corporate.proxy.com:port" >> /var/lib/boot2docker/profile
echo "export HTTPS_PROXY=http://username:password@corporate.proxy.com:port" >> /var/lib/boot2docker/profile
cat /var/lib/boot2docker/profile
docker-machine restart default