Get docker ip Get docker ip from docker-machine if applicable otherwise localhost Usage import ip from 'docker-ip'; ip() // 192.168.99.100 a "default" oneip('dev') // a "dev" one In order to run tests you should have installed and running docker.