Mar
12
Better network performance in Docker/Test Kitchen with Virtualbox on Mac
Posted in : virtualbox, docker, test-kitchen, and mac
If you’ve experienced really slow downloads from within VirtualBox on Mac, chances are you’re using the default NIC for your NAT interface.
I’ve seen docker’s pull taking ages when a layer size is more than a couple MB and chef installer taking more than 10mn to download the package…
Here’s how to fix it in docker-machine and test-kitchen.
For docker-machine
Check what’s your docker-machine
VM’s name:
it will give you something like the following (could be different depending of your config):
if it’s Running
, then stop it first:
then change the NIC to use the PCnet-FAST III (Am79C973)
instead of the default Intel PRO/1000 MT Desktop (82540EM)
:
And finally start it, it will now use the new NIC with “hopefully” improved speed:
For test-kitchen
Update your kitchen.yml
or kitchen.local.yml
to have your vagrant driver include the customize
config below:
Enjoy using all your available bandwidth!!