Use Boot2Docker on OSX from behind a proxy
# Start boot2docker
...
boot2docker ssh
...
# Open/create profile file with vi
sudo vi var/lib/boot2docker/profile
...
# Insert two entries with proxy access data
export http_proxy=http://username:password@xxx.xxx.xxx.xxx:8080
export https_proxy=http://username:password@xxx.xxx.xxx.xxx:8080
# Save profile and exit vi
<ESC>:wq<Enter>
...
# Restart boot2docker and exit ssh terminal
sudo /etc/init.d/docker restart
exit