How to use Boot2Docker on OSX From Behind a Proxy


  • SSH into the Boot2Docker shell
boot2docker ssh
  • Create/edit the profile
sudo vi /var/lib/boot2docker/profile
  • Add the proxy environment variables to it (if your proxy doesn't require a password leave out the 'user:pass@' 
export https_proxy=http://user:pass@proxy.host.com:port
export http_proxy=http://user:pass@proxy.host.com:port
  • save and close the file
  • Restart the docker daemon and exit boot2docker
sudo /etc/init.d/docker restart
exit

Comments

Popular posts from this blog

An Ideal Boy

Automated Testing with vncdotool (Not Headless, but Hairless)

Install Guide for Pentaho BI Server 4.8 (Community Edition) with MySQL on Windows