docker install the agent proxy_pool

Source: https: //github.com/jhao104/proxy_pool

 

1, redis installation

docker pull redis 

docker run -p 6379:6379 -v $PWD/redis_data:/data  --name redis -d redis redis-server --appendonly yes 

 

Command Description: 
-p 6379: 6379: 6379 of the container port mapping to the host port 6379 
-v $ PWD / data: / data : The data in the current directory is mounted to the main container / data 
Redis-Server - appendonly yes: start command in container execution redis-server, and open the persistence configuration redis 

redis: ip View
docker inspect redis vessel name | grep IPAddress

  

2, installation proxy_pool

docker pull jhao104/proxy_pool
docker run --env db_type=REDIS --env db_host=172.17.02 --env db_port=6379  -p 5010:5010 jhao104/proxy_pool 

3, the machine easy access

 

 

 

4, native browser input http://127.0.0.1:5010/get/ start carefree journey

Guess you like

Origin www.cnblogs.com/winstonsias/p/12102088.html