2弥搞、按照官方文檔 下載谷遂、運(yùn)行啟動(dòng) 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
我坑就坑在最后一步杨何,因?yàn)榫W(wǎng)上查的都是liunx下的資料铛嘱,ip直接用localhost就可以骤公,一直訪問不了十偶,其實(shí)mac下面,docker splash是會(huì)虛擬出一個(gè)新的ip的腻菇,這個(gè)地址需要用上面的命令查出胳螟。