Skip to content

Instantly share code, notes, and snippets.

@ksato9700
Last active August 29, 2015 14:19
Show Gist options
  • Save ksato9700/6c2141fc662906a03531 to your computer and use it in GitHub Desktop.
Save ksato9700/6c2141fc662906a03531 to your computer and use it in GitHub Desktop.
boot2docker proxy setting
boot2docker ssh
sudo sh -c "cat <<EOF > /var/lib/boot2docker/profile"
export HTTP_PROXY=<proxy>
export HTTPS_PROXY=<proxy>
export NO_PROXY=/var/run/docker.sock
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1
EOF"
sudo /etc/init.d/docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment