Note: if you are using a 3.X linux kernel (uname -r
), be sure to follow these extra steps:
https://docs.docker.com/install/linux/docker-ce/ubuntu/#supported-storage-drivers
- Install docker (bash setup_docker.sh)
- docker login
- docker pull pvadrevu/se_hunter
- Adjust the parameters in se_hunter.yml
- Set the # of replicas to a suitable value.
- As the 1st command, choose a suitable name for the host to identify the logs
- If its a residential IP, append the word "residential" to the commands
- docker swarm init
- To start: docker stack deploy -c se_hunter.yml se_hunter_service --with-registry-auth
- To stop: docker service rm se_hunter_service_web
- To check status:
- docker service ls
- docker container ls
- Run prune.py to frequently remove old stopped containers.
Note: Use sar if you want to monitor the system usage to decide the number of replicas: http://www.leonardoborda.com/blog/how-to-configure-sysstatsar-on-ubuntudebian/