Skip to content

Instantly share code, notes, and snippets.

@K0NRAD
Created May 4, 2015 10:35
Show Gist options
  • Save K0NRAD/f6c70be0e2ba143d5788 to your computer and use it in GitHub Desktop.
Save K0NRAD/f6c70be0e2ba143d5788 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment