aculich / docker-proxy-cache

2 stars 0 forks source link

For boot2docker, run run-docker-proxy-cache.sh from inside the boot2docker vm? #1

Closed rdhyee closed 10 years ago

rdhyee commented 10 years ago

I was about to do ./run-docker-proxy-cache.sh in the Mac shell but then thought that I should be doing this inside the boot2docker VM. Is that right, @aculich ?

aculich commented 10 years ago

Yes, you should run it inside boot2docker since it twiddles with iptables rules that, as written, are Linux-specific (or that's the only place I've tested them).

I've updated the code to avoid a problem I encountered testing this with b2d (factored out an Ubuntu-specific assumption).

Also, you'll want to explicitly create a cache directory somewhere and invoke with:

CACHEDIR=/path/to/cachedir sh ./run-docker-proxy-cache.sh

aculich commented 10 years ago

Also, you may want to make sure you are running the latest b2d 1.2.0 since it has fixes for sudo that may be required (I haven't tested it on earlier b2d versions).