http://blog.csdn.net/chenhy8208/article/details/69391097
Recently need to use the Scrapy crawler to do some development, using the splash. I am the MAC environment, jumping to see the data, resulting in a number of pits, recording how the Mac installation run Splash
1. Download and install Dockertoolbox ()
After the download is complete, the following 3 apps will be installed.
Click on the first terminal to run.
2, according to the official document download, run start splash
1.Pull the Image:
$ Docker Pull Scrapinghub/splash
2.Start the Container:
$ docker run-p 5023:5023-p 8050:8050-p 8051:8051 Scrapinghub/splash
3.Figure out the IP address of the Docker-machine:
$ docker-machine IP Default
192.168.59.103
I pit in the last step, because the online check is liunx under the data, IP directly with localhost can, has been unable to access, in fact, under the Mac, Docker Splash will be virtual out a new IP, this address needs to be identified with the above command.
Finally, the interface for successful startup is like this
Install and run splash under MAC environment