Install and run splash under MAC environment

Source: Internet
Author: User
Tags docker run

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.