Install Reacher Email Checker Inside Docker Container on Linux

Install Reacher Email Checker Inside Docker Container on Linux

Reacher is a web service focused on email verification - checking whether an email address exists without actually sending an email. It is an open-source project written in the Rust programming language.

This tutorial explains how to install Reacher inside a Docker container on the Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install Reacher

  • Host network

Run the following command to create a container for Reacher that uses host network:

docker run -d --name=reacher --restart=always --network=host \
    reacherhq/backend
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Reacher service is listening on port 8080. It can be changed with -p option.

docker network create app-net
docker run -d --name=reacher --restart=always --network=app-net \
    -p 8081:8080 \
    reacherhq/backend

Testing Reacher

To verify that the Reacher service is running properly and responding as expected, you can send a sample request using the curl command:

curl -X POST -H 'Content-Type:application/json' \
    -d '{"to_email": "john123@gmail.com"}' \
    http://192.168.0.227:8080/v1/check_email

Note: Replace the IP address with the actual IP address of the system.

Uninstall Reacher

To completely remove Reacher, remove its container:

docker rm --force reacher

Remove Reacher image:

docker rmi reacherhq/backend

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.